Ignore:
Timestamp:
Jul 31, 2003, 5:58:58 PM (22 years ago)
Author:
sandervl
Message:

KOMH: DBCS updates/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/msgbox.c

    r10076 r10190  
    1 /* $Id: msgbox.c,v 1.7 2003-05-06 13:50:36 sandervl Exp $ */
     1/* $Id: msgbox.c,v 1.8 2003-07-31 15:56:43 sandervl Exp $ */
    22/*
    33 * Message boxes (based on Wine code)
     
    360360{
    361361    MSGBOXPARAMSA       msgboxa;
     362#ifdef __WIN32OS2__
     363    int ret;
     364#endif
    362365
    363366    memcpy(&msgboxa,msgbox,sizeof(msgboxa));
     367#ifdef __WIN32OS2__
     368    if (msgbox->lpszCaption)
     369        msgboxa.lpszCaption = HEAP_strdupWtoA( GetProcessHeap(), 0, msgbox->lpszCaption );
     370    if (msgbox->lpszText)
     371        msgboxa.lpszText = HEAP_strdupWtoA( GetProcessHeap(), 0, msgbox->lpszText );
     372    if( msgbox->lpszIcon && HIWORD( msgbox->lpszIcon ))
     373        msgboxa.lpszIcon = HEAP_strdupWtoA( GetProcessHeap(), 0, msgbox->lpszIcon );
     374
     375    ret = MessageBoxIndirectA(&msgboxa);
     376
     377    if (msgbox->lpszCaption)
     378        HeapFree( GetProcessHeap(), 0, ( LPVOID )msgboxa.lpszCaption );
     379    if (msgbox->lpszText)
     380        HeapFree( GetProcessHeap(), 0, ( LPVOID )msgboxa.lpszText );
     381    if( msgbox->lpszIcon && HIWORD( msgbox->lpszIcon ))
     382        HeapFree( GetProcessHeap(), 0, ( LPVOID )msgboxa.lpszIcon );
     383
     384    return ret;
     385#else
    364386    if (msgbox->lpszCaption)
    365387      lstrcpyWtoA((LPSTR)msgboxa.lpszCaption,msgbox->lpszCaption);
     
    368390
    369391    return MessageBoxIndirectA(&msgboxa);
     392#endif
     393
    370394}
    371395
Note: See TracChangeset for help on using the changeset viewer.