Peter Oberndorfer : ntdll: Make exception test not hang when creating process fails.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 06:23:12 CST 2007


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

Author: Peter Oberndorfer <kumbayo84 at arcor.de>
Date:   Fri Mar  2 16:12:54 2007 +0100

ntdll: Make exception test not hang when creating process fails.

---

 dlls/ntdll/tests/exception.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index 08ec9c6..07f4bc6 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -591,6 +591,7 @@ static void test_debugger(void)
     PVOID code_mem_address = NULL;
     NTSTATUS status;
     SIZE_T size_read;
+    BOOL ret;
     int counter = 0;
     si.cb = sizeof(si);
 
@@ -601,8 +602,10 @@ static void test_debugger(void)
     }
 
     sprintf(cmdline, "%s %s %s", my_argv[0], my_argv[1], "debuggee");
-    ok(CreateProcess(NULL, cmdline, NULL, NULL, FALSE, DEBUG_PROCESS, NULL, NULL,
-                     &si, &pi) != 0, "error: %u\n", GetLastError());
+    ret = CreateProcess(NULL, cmdline, NULL, NULL, FALSE, DEBUG_PROCESS, NULL, NULL, &si, &pi);
+    ok(ret, "could not create child process error: %u\n", GetLastError());
+    if (!ret)
+        return;
 
     do
     {




More information about the wine-cvs mailing list