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…
==============================================================================
--- 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));