[PATCH] winspool/tests: Fix a failure on NT4 for EnumPrintProcessors
Detlef Riekenberg
wine.dev at web.de
Fri Oct 16 08:13:17 CDT 2009
---
dlls/winspool.drv/tests/info.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index 37ddd63..b249a00 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -1315,9 +1315,10 @@ static void test_EnumPrintProcessors(void)
SetLastError(0xdeadbeef);
pcbNeeded = 0xdeadbeef;
res = EnumPrintProcessorsA(NULL, invalid_env, 1, buffer, cbBuf, &pcbNeeded, &pcReturned);
- /* NT5: ERROR_INVALID_ENVIRONMENT, 9x: ERROR_INVALID_PARAMETER */
- ok( !res && ((GetLastError() == ERROR_INVALID_ENVIRONMENT) ||
- (GetLastError() == ERROR_INVALID_PARAMETER)),
+ /* NT5: ERROR_INVALID_ENVIRONMENT, NT4: res != 0, 9x: ERROR_INVALID_PARAMETER */
+ ok( broken(res) || /* NT4 */
+ (GetLastError() == ERROR_INVALID_ENVIRONMENT) ||
+ (GetLastError() == ERROR_INVALID_PARAMETER),
"got %u with %u (expected '0' with ERROR_INVALID_ENVIRONMENT or "
"ERROR_INVALID_PARAMETER)\n", res, GetLastError());
--
1.5.4.3
--=-IF2JLjux6LdcKuvWBbGa--
More information about the wine-patches
mailing list