mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
cmd_alloc_dbg is NOT available in release builds!!!
svn path=/trunk/; revision=30801
This commit is contained in:
parent
209a4eb72e
commit
6e2d5efb41
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue