From 3d01fc39aa084a6121ac5f2e07f73916a23a9116 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Sat, 6 Jan 2007 18:44:36 +0800 Subject: [PATCH] kernel32: Skip the OpenProcess test under Win9x. --- dlls/kernel32/tests/process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index 52251a63762..8a157226190 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()); }