Commit 9dafa1fc authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

kernel32/tests: CreateRemoteThread is not implemented on win98.

parent 0a202679
...@@ -241,8 +241,14 @@ static VOID test_CreateRemoteThread(void) ...@@ -241,8 +241,14 @@ static VOID test_CreateRemoteThread(void)
ok(ret != 0, "DuplicateHandle failed, err=%u\n", GetLastError()); ok(ret != 0, "DuplicateHandle failed, err=%u\n", GetLastError());
/* create suspended remote thread with entry point SetEvent() */ /* create suspended remote thread with entry point SetEvent() */
SetLastError(0xdeadbeef);
hThread = CreateRemoteThread(hProcess, NULL, 0, threadFunc_SetEvent, hThread = CreateRemoteThread(hProcess, NULL, 0, threadFunc_SetEvent,
hRemoteEvent, CREATE_SUSPENDED, &tid); hRemoteEvent, CREATE_SUSPENDED, &tid);
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
skip("CreateRemoteThread is not implemented\n");
goto cleanup;
}
ok(hThread != NULL, "CreateRemoteThread failed, err=%u\n", GetLastError()); ok(hThread != NULL, "CreateRemoteThread failed, err=%u\n", GetLastError());
ok(tid != 0, "null tid\n"); ok(tid != 0, "null tid\n");
ret = SuspendThread(hThread); ret = SuspendThread(hThread);
...@@ -291,6 +297,7 @@ static VOID test_CreateRemoteThread(void) ...@@ -291,6 +297,7 @@ static VOID test_CreateRemoteThread(void)
if (ret) ok(exitcode == 0, "SetEvent succeeded, expected to fail\n"); if (ret) ok(exitcode == 0, "SetEvent succeeded, expected to fail\n");
CloseHandle(hThread); CloseHandle(hThread);
cleanup:
TerminateProcess(hProcess, 0); TerminateProcess(hProcess, 0);
CloseHandle(hEvent); CloseHandle(hEvent);
CloseHandle(hProcess); CloseHandle(hProcess);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment