kernel32: Skip the OpenProcess test under Win9x.
This commit is contained in:
parent
d73e5d6fc8
commit
3d01fc39aa
|
@ -1313,6 +1313,12 @@ static void test_OpenProcess(void)
|
||||||
addr1 = pVirtualAllocEx(hproc, 0, 0xFFFC, MEM_RESERVE, PAGE_NOACCESS);
|
addr1 = pVirtualAllocEx(hproc, 0, 0xFFFC, MEM_RESERVE, PAGE_NOACCESS);
|
||||||
todo_wine {
|
todo_wine {
|
||||||
ok(!addr1, "VirtualAllocEx should fail\n");
|
ok(!addr1, "VirtualAllocEx should fail\n");
|
||||||
|
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
{ /* Win9x */
|
||||||
|
CloseHandle(hproc);
|
||||||
|
trace("VirtualAllocEx is not implemented, skipping the test\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(GetLastError() == ERROR_ACCESS_DENIED, "wrong error %d\n", GetLastError());
|
ok(GetLastError() == ERROR_ACCESS_DENIED, "wrong error %d\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue