mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Batch: In a line generated by a 'for', add the \n that the parser expects. (Bug 3717)
- cmd_for: Don't leave raw_params uninitialized; could cause a crash in ExitBatch. svn path=/trunk/; revision=36061
This commit is contained in:
parent
81fd8772b6
commit
8d7388ee07
2 changed files with 2 additions and 0 deletions
|
@ -421,6 +421,7 @@ LPTSTR ReadBatchLine ()
|
|||
}
|
||||
}
|
||||
|
||||
*dp++ = _T('\n');
|
||||
*dp = _T('\0');
|
||||
|
||||
return textline;
|
||||
|
|
|
@ -130,6 +130,7 @@ INT cmd_for (LPTSTR param)
|
|||
|
||||
bc->hBatchFile = INVALID_HANDLE_VALUE;
|
||||
bc->ffind = NULL;
|
||||
bc->raw_params = NULL;
|
||||
bc->params = BatchParams (_T(""), param); /* Split out list */
|
||||
bc->shiftlevel = 0;
|
||||
bc->forvar = var;
|
||||
|
|
Loading…
Reference in a new issue