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

replaced heap alloc by stack alloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/module.cpp

    r6646 r7334  
    1 /* $Id: module.cpp,v 1.3 2001-09-05 12:57:59 bird Exp $
     1/* $Id: module.cpp,v 1.4 2001-11-14 12:30:38 phaller Exp $
    22 *
    33 * GetBinaryTypeA/W (Wine Port)
     
    262262{
    263263    BOOL ret = FALSE;
    264     LPSTR strNew = NULL;
    265264
    266265    dprintf(("KERNEL32: GetBinaryTypeW %x %x", lpApplicationName, lpBinaryType));
     
    276275    /* Convert the wide string to a ascii string.
    277276     */
    278     strNew = HEAP_strdupWtoA( GetProcessHeap(), 0, lpApplicationName );
     277#ifdef __WIN32OS2__
     278  LPSTR strNew;
     279  STACK_strdupWtoA(lpApplicationName, strNew)
     280#else
     281  LPSTR strNew = HEAP_strdupWtoA( GetProcessHeap(), 0, lpApplicationName );
     282#endif
    279283
    280284    if ( strNew != NULL )
     
    284288        /* Free the allocated string.
    285289         */
    286         HeapFree( GetProcessHeap(), 0, strNew );
     290#ifndef __WIN32OS2__
     291      HeapFree( GetProcessHeap(), 0, strNew );
     292#endif
    287293    }
    288294
Note: See TracChangeset for help on using the changeset viewer.