Module: wine Branch: master Commit: 3d01fc39aa084a6121ac5f2e07f73916a23a9116 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d01fc39aa084a6121ac5f2e07...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Sat Jan 6 18:44:36 2007 +0800
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()); }