- Timestamp:
- Nov 14, 2001, 1:57:28 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/mdi.c
r6792 r7337 1521 1521 case WM_SETTEXT: 1522 1522 { 1523 #ifdef __WIN32OS2__ 1524 LPWSTR text; 1525 STACK_strdupAtoW( (LPSTR)lParam, text) 1526 MDI_UpdateFrameText(hwnd, hwndMDIClient, MDI_REPAINTFRAME, text ); 1527 #else 1523 1528 LPWSTR text = HEAP_strdupAtoW( GetProcessHeap(), 0, (LPSTR)lParam ); 1524 1529 MDI_UpdateFrameText(hwnd, hwndMDIClient, MDI_REPAINTFRAME, text ); 1525 1530 HeapFree( GetProcessHeap(), 0, text ); 1531 #endif 1526 1532 } 1527 1533 return 1; /* success. FIXME: check text length */ -
trunk/src/user32/msgbox.c
r6375 r7337 1 /* $Id: msgbox.c,v 1. 4 2001-07-20 15:34:16 sandervlExp $ */1 /* $Id: msgbox.c,v 1.5 2001-11-14 12:57:28 phaller Exp $ */ 2 2 /* 3 3 * Message boxes (based on Wine code) … … 298 298 UINT type ) 299 299 { 300 INT ret; 301 302 #ifdef __WIN32OS2__ 303 LPSTR titleA; 304 LPSTR textA; 305 STACK_strdupWtoA(title, titleA) 306 STACK_strdupWtoA(text, textA) 307 #else 300 308 LPSTR titleA = HEAP_strdupWtoA( GetProcessHeap(), 0, title ); 301 309 LPSTR textA = HEAP_strdupWtoA( GetProcessHeap(), 0, text ); 302 INT ret; 310 #endif 303 311 304 312 ret = MessageBoxA( hwnd, textA, titleA, type ); 313 314 #ifndef __WIN32OS2__ 305 315 HeapFree( GetProcessHeap(), 0, titleA ); 306 316 HeapFree( GetProcessHeap(), 0, textA ); 317 #endif 307 318 return ret; 308 319 }
Note:
See TracChangeset
for help on using the changeset viewer.