mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:42:58 +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);
|
cmd_free (bc->raw_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZeroMemory(bc->BatchFilePath, sizeof(bc->BatchFilePath));
|
||||||
bc->hBatchFile = hFile;
|
bc->hBatchFile = hFile;
|
||||||
tmp = _tcsrchr(fullname, '\\');
|
tmp = _tcsrchr(fullname, '\\');
|
||||||
_tcsncpy(bc->BatchFilePath, fullname, ((_tcslen(fullname) - _tcslen(tmp)) + 1));
|
_tcsncpy(bc->BatchFilePath, fullname, ((_tcslen(fullname) - _tcslen(tmp)) + 1));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue