ZeroMemory the batchfile path

svn path=/trunk/; revision=32076
This commit is contained in:
Christoph von Wittich 2008-02-01 20:30:51 +00:00
parent 6db22908ce
commit 8872eea630

View file

@ -269,6 +269,7 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param)
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));