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

This commit is contained in:
Peter Oberndorfer 2007-03-02 16:12:54 +01:00 committed by Alexandre Julliard
parent 25cd1c4d28
commit 1bfbcefb60
1 changed files with 5 additions and 2 deletions

View File

@ -591,6 +591,7 @@ static void test_debugger(void)
PVOID code_mem_address = NULL; PVOID code_mem_address = NULL;
NTSTATUS status; NTSTATUS status;
SIZE_T size_read; SIZE_T size_read;
BOOL ret;
int counter = 0; int counter = 0;
si.cb = sizeof(si); 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"); sprintf(cmdline, "%s %s %s", my_argv[0], my_argv[1], "debuggee");
ok(CreateProcess(NULL, cmdline, NULL, NULL, FALSE, DEBUG_PROCESS, NULL, NULL, ret = CreateProcess(NULL, cmdline, NULL, NULL, FALSE, DEBUG_PROCESS, NULL, NULL, &si, &pi);
&si, &pi) != 0, "error: %u\n", GetLastError()); ok(ret, "could not create child process error: %u\n", GetLastError());
if (!ret)
return;
do do
{ {