mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
ZeroMemory the batchfile path
svn path=/trunk/; revision=32076
This commit is contained in:
parent
6db22908ce
commit
8872eea630
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue