cmd: Fix trap when batch pgm runs another batch pgm.

This commit is contained in:
Jason Edmeades 2007-07-24 23:36:30 +01:00 committed by Alexandre Julliard
parent addc9957af
commit 85c5dcb13f
1 changed files with 2 additions and 5 deletions

View File

@ -122,13 +122,10 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
LocalFree ((HANDLE)context); LocalFree ((HANDLE)context);
if ((prev_context != NULL) && (!called)) { if ((prev_context != NULL) && (!called)) {
CloseHandle (prev_context -> h); prev_context -> skip_rest = TRUE;
context = prev_context -> prev_context;
LocalFree ((HANDLE)prev_context);
}
else {
context = prev_context; context = prev_context;
} }
context = prev_context;
} }
/******************************************************************* /*******************************************************************