Jacek Caban : wscript: Properly handle CreateProcess failure.

Alexandre Julliard julliard at winehq.org
Fri Jan 27 11:30:40 CST 2012


Module: wine
Branch: master
Commit: 9f7da94a3d02a82ff61e0c134f428857ebaa467f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9f7da94a3d02a82ff61e0c134f428857ebaa467f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Jan 27 11:43:02 2012 +0100

wscript: Properly handle CreateProcess failure.

---

 programs/wscript/tests/run.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/wscript/tests/run.c b/programs/wscript/tests/run.c
index 163be22..315f51f 100644
--- a/programs/wscript/tests/run.c
+++ b/programs/wscript/tests/run.c
@@ -34,8 +34,8 @@
 #define SET_EXPECT(func) \
     expect_ ## func = TRUE
 
-#define SET_CALLED(func) \
-    called_ ## func = TRUE
+#define CLEAR_CALLED(func) \
+    expect_ ## func = called_ ## func = FALSE
 
 #define CHECK_EXPECT2(func) \
     do { \
@@ -355,7 +355,7 @@ static void run_test(const char *file_name)
     bres = CreateProcessA(NULL, command, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi);
     if(!bres) {
         win_skip("script.exe is not available\n");
-        SET_CALLED(reportSuccess);
+        CLEAR_CALLED(reportSuccess);
         return;
     }
 




More information about the wine-cvs mailing list