mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:32:55 +00:00
expand %* to batch file params.
bug: #1629 svn path=/trunk/; revision=22683
This commit is contained in:
parent
bbfd29210c
commit
c6661f1f9e
3 changed files with 32 additions and 0 deletions
|
@ -272,6 +272,11 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param)
|
|||
bc->forvar = _T('\0');
|
||||
bc->forproto = NULL;
|
||||
bc->params = BatchParams (firstword, param);
|
||||
//
|
||||
// Allocate enough memory to hold the params and copy them over without modifications
|
||||
//
|
||||
bc->raw_params = malloc(_tcslen(param));
|
||||
_tcscpy(bc->raw_params,param);
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("Batch: returns TRUE\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue