From ab9ee4a3fd85734d9dca1f2c90e9f03d860eacc5 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 21 Oct 2009 10:16:41 +0200 Subject: [PATCH] winspool.drv/tests: Fix a test failure on Vista. --- dlls/winspool.drv/tests/info.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index b249a0048fc..c6c00662eca 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -1712,11 +1712,11 @@ static void test_GetPrintProcessorDirectory(void) buffer[0] = '\0'; SetLastError(0xdeadbeef); res = GetPrintProcessorDirectoryA(server_does_not_exist, NULL, 1, buffer, cbBuf*2, &pcbNeeded); - /* NT: RPC_S_SERVER_UNAVAILABLE, 9x: ERROR_INVALID_PARAMETER */ - ok( !res && - (GetLastError() == RPC_S_SERVER_UNAVAILABLE || GetLastError() == ERROR_INVALID_PARAMETER), - "returned %d with %d (expected '0' with RPC_S_SERVER_UNAVAILABLE or " - "ERROR_INVALID_PARAMETER)\n", res, GetLastError()); + ok( !res, "expected failure\n"); + ok( GetLastError() == RPC_S_SERVER_UNAVAILABLE || /* NT */ + GetLastError() == ERROR_INVALID_PARAMETER || /* 9x */ + GetLastError() == RPC_S_INVALID_NET_ADDR, /* Some Vista */ + "unexpected last error %d\n", GetLastError()); HeapFree(GetProcessHeap(), 0, buffer); }