[ros-diffs] [weiden] 30801: cmd_alloc_dbg is NOT available in release builds!!!

weiden at svn.reactos.org weiden at svn.reactos.org
Tue Nov 27 01:41:44 CET 2007


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=30801&r1=30800&r2=30801&view=diff
==============================================================================
--- 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;




More information about the Ros-diffs mailing list