Jason Edmeades : cmd: Fix trap when batch pgm runs another batch pgm.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 25 07:44:14 CDT 2007
Module: wine
Branch: master
Commit: 85c5dcb13f98f2d403d9c9ea80ef8b50b37365b0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=85c5dcb13f98f2d403d9c9ea80ef8b50b37365b0
Author: Jason Edmeades <jason.edmeades at googlemail.com>
Date: Tue Jul 24 23:36:30 2007 +0100
cmd: Fix trap when batch pgm runs another batch pgm.
---
programs/cmd/batch.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 8f0187c..8faa297 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -122,13 +122,10 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
LocalFree ((HANDLE)context);
if ((prev_context != NULL) && (!called)) {
- CloseHandle (prev_context -> h);
- context = prev_context -> prev_context;
- LocalFree ((HANDLE)prev_context);
- }
- else {
+ prev_context -> skip_rest = TRUE;
context = prev_context;
}
+ context = prev_context;
}
/*******************************************************************
More information about the wine-cvs
mailing list