kernel32/tests: CreateRemoteThread is not implemented on win98.
This commit is contained in:
parent
0a202679b8
commit
9dafa1fc11
|
@ -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)
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue