Changeset 10190 for trunk/src/user32/msgbox.c
- Timestamp:
- Jul 31, 2003, 5:58:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/msgbox.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/msgbox.c
r10076 r10190 1 /* $Id: msgbox.c,v 1. 7 2003-05-06 13:50:36sandervl Exp $ */1 /* $Id: msgbox.c,v 1.8 2003-07-31 15:56:43 sandervl Exp $ */ 2 2 /* 3 3 * Message boxes (based on Wine code) … … 360 360 { 361 361 MSGBOXPARAMSA msgboxa; 362 #ifdef __WIN32OS2__ 363 int ret; 364 #endif 362 365 363 366 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 364 386 if (msgbox->lpszCaption) 365 387 lstrcpyWtoA((LPSTR)msgboxa.lpszCaption,msgbox->lpszCaption); … … 368 390 369 391 return MessageBoxIndirectA(&msgboxa); 392 #endif 393 370 394 } 371 395
Note:
See TracChangeset
for help on using the changeset viewer.
