mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user