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/environ.cpp

    r5596 r7334  
    1 /* $Id: environ.cpp,v 1.11 2001-04-26 17:01:58 sandervl Exp $ */
     1/* $Id: environ.cpp,v 1.12 2001-11-14 12:30:34 phaller Exp $ */
    22
    33/*
     
    283283              DWORD,   nSize)
    284284{
     285#ifdef __WIN32OS2__
     286  LPSTR srcA;
     287  STACK_strdupWtoA(lpSrc, srcA)
     288#else
    285289  LPSTR srcA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpSrc );
     290#endif
     291 
    286292  LPSTR dstA = lpDst ? (LPSTR)HeapAlloc( GetProcessHeap(), 0, nSize ) : NULL;
    287293
     
    294300      HeapFree( GetProcessHeap(), 0, dstA );
    295301    }
     302#ifndef __WIN32OS2__
    296303  HeapFree( GetProcessHeap(), 0, srcA );
     304#endif
    297305  return ret;
    298306}
Note: See TracChangeset for help on using the changeset viewer.