expand %* to batch file params.

bug: #1629

svn path=/trunk/; revision=22683
This commit is contained in:
Brandon Turner 2006-06-29 02:48:52 +00:00
parent bbfd29210c
commit c6661f1f9e
3 changed files with 32 additions and 0 deletions

View file

@ -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"));