Commit 5e3e9e03 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

winspool.drv/tests: Skip non supported levels on Win9x/WinMe.

parent f5d40cb8
......@@ -2275,6 +2275,13 @@ static void test_GetPrinter(void)
SetLastError(0xdeadbeef);
needed = (DWORD)-1;
ret = GetPrinter(hprn, level, NULL, 0, &needed);
if (ret)
{
win_skip("Level %d is not supported on Win9x/WinMe\n", level);
ok(GetLastError() == ERROR_SUCCESS, "wrong error %d\n", GetLastError());
ok(needed == 0,"Expected 0, got %d\n", needed);
continue;
}
ok(!ret, "level %d: GetPrinter should fail\n", level);
/* Not all levels are supported on all Windows-Versions */
if (GetLastError() == ERROR_INVALID_LEVEL ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment