kernel32: Skip the OpenProcess test under Win9x
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Jan 6 04:44:36 CST 2007
Hello,
Changelog:
kernel32: Skip the OpenProcess test under Win9x.
---
dlls/kernel32/tests/process.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index 52251a6..8a15722 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -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());
}
--
1.4.4.2
More information about the wine-patches
mailing list