Paul Vriens : winspool.drv/tests: Fix a test failure on Vista.
Alexandre Julliard
julliard at winehq.org
Wed Oct 21 13:13:59 CDT 2009
Module: wine
Branch: master
Commit: ab9ee4a3fd85734d9dca1f2c90e9f03d860eacc5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab9ee4a3fd85734d9dca1f2c90e9f03d860eacc5
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Oct 21 10:16:41 2009 +0200
winspool.drv/tests: Fix a test failure on Vista.
---
dlls/winspool.drv/tests/info.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index b249a00..c6c0066 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);
}
More information about the wine-cvs
mailing list