[ros-diffs] [cwittich] 32076: ZeroMemory the batchfile path

cwittich at svn.reactos.org cwittich at svn.reactos.org
Fri Feb 1 21:30:51 CET 2008


Author: cwittich
Date: Fri Feb  1 23:30:51 2008
New Revision: 32076

URL: http://svn.reactos.org/svn/reactos?rev=32076&view=rev
Log:
ZeroMemory the batchfile path

Modified:
    trunk/reactos/base/shell/cmd/batch.c

Modified: trunk/reactos/base/shell/cmd/batch.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/batch.c?rev=32076&r1=32075&r2=32076&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/batch.c (original)
+++ trunk/reactos/base/shell/cmd/batch.c Fri Feb  1 23:30:51 2008
@@ -269,6 +269,7 @@
 			cmd_free (bc->raw_params);
 	}
 
+	ZeroMemory(bc->BatchFilePath, sizeof(bc->BatchFilePath));
 	bc->hBatchFile = hFile;
 	tmp = _tcsrchr(fullname, '\\');
 	_tcsncpy(bc->BatchFilePath, fullname, ((_tcslen(fullname) - _tcslen(tmp)) + 1));




More information about the Ros-diffs mailing list