From f5d40cb8c5d6f33b7b34c5b0c1943b9dd50e8bc0 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 17 Feb 2010 10:38:31 +0100 Subject: [PATCH] winspool.drv/tests: Fix some test failures on Win9x/WinMe. --- dlls/winspool.drv/tests/info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index 712b00b90cd..2ea5f5495b6 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -2277,7 +2277,12 @@ static void test_GetPrinter(void) ret = GetPrinter(hprn, level, NULL, 0, &needed); ok(!ret, "level %d: GetPrinter should fail\n", level); /* Not all levels are supported on all Windows-Versions */ - if(GetLastError() == ERROR_INVALID_LEVEL) continue; + if (GetLastError() == ERROR_INVALID_LEVEL || + GetLastError() == ERROR_NOT_SUPPORTED /* Win9x/WinMe */) + { + skip("Level %d not supported\n", level); + continue; + } ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "wrong error %d\n", GetLastError()); ok(needed > 0,"not expected needed buffer size %d\n", needed); -- 2.11.4.GIT