cmd_alloc_dbg is NOT available in release builds!!!

svn path=/trunk/; revision=30801
This commit is contained in:
Thomas Bluemel 2007-11-27 00:41:44 +00:00
parent 209a4eb72e
commit 6e2d5efb41

View file

@ -1123,8 +1123,11 @@ GrowIfNecessary_dbg ( UINT needed, LPTSTR* ret, UINT* retlen, const char *file,
*retlen = needed;
if ( *ret )
cmd_free ( *ret );
// *ret = (LPTSTR)cmd_alloc ( *retlen * sizeof(TCHAR) );
#ifdef _DEBUG_MEM
*ret = (LPTSTR)cmd_alloc_dbg ( *retlen * sizeof(TCHAR), file, line );
#else
*ret = (LPTSTR)cmd_alloc ( *retlen * sizeof(TCHAR) );
#endif
if ( !*ret )
SetLastError ( ERROR_OUTOFMEMORY );
return *ret != NULL;