mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[CMD] Cleanup all batch contexts if the execution loop stopped due to EXIT.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user