winspool/tests: [1/2] Vista returned a different status

Detlef Riekenberg wine.dev at web.de
Mon Mar 5 14:44:18 CST 2007



Changelog:
winspool/tests: Vista returned a different status



-- 
 
By by ... Detlef

-------------- next part --------------
>From 420e586445f187ebd5c2bb6ebdfd34c37c790b91 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Mon, 5 Mar 2007 20:17:22 +0100
Subject: [PATCH] winspool/tests: Vista returned a different status
---
 dlls/winspool.drv/tests/info.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index 5a8994e..e13dbd8 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -1716,8 +1716,9 @@ static void test_XcvDataW_PortIsValid(vo
     status = (DWORD) 0xdeadbeef;
     SetLastError(0xdeadbeef);
     res = pXcvDataW(hXcv, cmd_PortIsValidW, (PBYTE) emptyW, sizeof(emptyW), NULL, 0, &needed, &status);
-    ok( res && (status == ERROR_PATH_NOT_FOUND),
-        "returned %d with %u and %u for status %u (expected '!= 0' for ERROR_PATH_NOT_FOUND)\n",
+    ok( res && ((status == ERROR_FILE_NOT_FOUND) || (status == ERROR_PATH_NOT_FOUND)),
+        "returned %d with %u and %u for status %u (expected '!= 0' for status: "
+        "ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND)\n",
         res, GetLastError(), needed, status);
 
     /* a directory is not allowed */
-- 
1.4.1



More information about the wine-patches mailing list