Author: weiden
Date: Tue Nov 27 03:41:44 2007
New Revision: 30801
URL:
http://svn.reactos.org/svn/reactos?rev=30801&view=rev
Log:
cmd_alloc_dbg is NOT available in release builds!!!
Modified:
trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=3…
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c (original)
+++ trunk/reactos/base/shell/cmd/cmd.c Tue Nov 27 03:41:44 2007
@@ -1123,8 +1123,11 @@
*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;