[PATCH 2/4] WCMD_run_program errorlevel fix

Eric Ho ericho921 at gmail.com
Sun Mar 7 14:48:18 CST 2010


This patch fixes the problem of not defining an errorlevel before returning
(should be 9023)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100307/210adc9b/attachment.htm>
-------------- next part --------------
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index d7bd556..7411af0 100755
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -995,6 +995,7 @@ void WCMD_run_program (WCHAR *command, int called) {
     if (strlenW(param1) >= MAX_PATH)
     {
         WCMD_output_asis(WCMD_LoadMessage(WCMD_LINETOOLONG));
+        errorlevel = 9023;
         return;
     }
 


More information about the wine-patches mailing list