mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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);
|
||||
FreeCommand(Cmd);
|
||||
}
|
||||
if (bExit)
|
||||
{
|
||||
/* Stop all execution */
|
||||
ExitAllBatches();
|
||||
}
|
||||
|
||||
/* Perform top-level batch cleanup */
|
||||
if (!bc || bTopLevel)
|
||||
|
|
Loading…
Reference in a new issue