mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:31:40 +00:00
[CMD] Cleanup all batch contexts if the execution loop stopped due to EXIT.
This commit is contained in:
parent
68cb54dc58
commit
895dccd4ac
1 changed files with 5 additions and 0 deletions
|
@ -478,6 +478,11 @@ INT Batch(LPTSTR fullname, LPTSTR firstword, LPTSTR param, PARSED_COMMAND *Cmd)
|
||||||
ret = ExecuteCommandWithEcho(Cmd);
|
ret = ExecuteCommandWithEcho(Cmd);
|
||||||
FreeCommand(Cmd);
|
FreeCommand(Cmd);
|
||||||
}
|
}
|
||||||
|
if (bExit)
|
||||||
|
{
|
||||||
|
/* Stop all execution */
|
||||||
|
ExitAllBatches();
|
||||||
|
}
|
||||||
|
|
||||||
/* Perform top-level batch cleanup */
|
/* Perform top-level batch cleanup */
|
||||||
if (!bc || bTopLevel)
|
if (!bc || bTopLevel)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue