Ignore:
Timestamp:
Nov 14, 2001, 1:57:28 PM (24 years ago)
Author:
phaller
Message:

replaced heap alloc by stack alloc

File:
1 edited

Legend:

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

    r6792 r7337  
    15211521        case WM_SETTEXT:
    15221522            {
     1523#ifdef __WIN32OS2__
     1524                LPWSTR text;
     1525                STACK_strdupAtoW( (LPSTR)lParam, text)
     1526                MDI_UpdateFrameText(hwnd, hwndMDIClient, MDI_REPAINTFRAME, text );
     1527#else
    15231528                LPWSTR text = HEAP_strdupAtoW( GetProcessHeap(), 0, (LPSTR)lParam );
    15241529                MDI_UpdateFrameText(hwnd, hwndMDIClient, MDI_REPAINTFRAME, text );
    15251530                HeapFree( GetProcessHeap(), 0, text );
     1531#endif
    15261532            }
    15271533            return 1; /* success. FIXME: check text length */
Note: See TracChangeset for help on using the changeset viewer.