kernel32: Skip the OpenProcess test under Win9x.

This commit is contained in:
Dmitry Timoshkov 2007-01-06 18:44:36 +08:00 committed by Alexandre Julliard
parent d73e5d6fc8
commit 3d01fc39aa
1 changed files with 6 additions and 0 deletions

View File

@ -1313,6 +1313,12 @@ static void test_OpenProcess(void)
addr1 = pVirtualAllocEx(hproc, 0, 0xFFFC, MEM_RESERVE, PAGE_NOACCESS);
todo_wine {
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());
}