ntdll: Make exception test not hang when creating process fails.
This commit is contained in:
parent
25cd1c4d28
commit
1bfbcefb60
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue