Rob Shearman : credui: Fix a test failure on Windows XP.

Alexandre Julliard julliard at winehq.org
Tue Nov 27 09:54:32 CST 2007


Module: wine
Branch: master
Commit: 0f9e568933925b283aa1a7bd20fdd8b27db94046
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0f9e568933925b283aa1a7bd20fdd8b27db94046

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Nov 27 12:32:39 2007 +0000

credui: Fix a test failure on Windows XP.

---

 dlls/credui/tests/credui.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/credui/tests/credui.c b/dlls/credui/tests/credui.c
index 692e586..969b096 100644
--- a/dlls/credui/tests/credui.c
+++ b/dlls/credui/tests/credui.c
@@ -41,7 +41,8 @@ static void test_CredUIPromptForCredentials(void)
     credui_info.hbmBanner = NULL;
 
     ret = CredUIConfirmCredentialsW(NULL, TRUE);
-    ok(ret == ERROR_INVALID_PARAMETER, "CredUIConfirmCredentials should have returned ERROR_INVALID_PARAMETER instead of %d\n", ret);
+    ok(ret == ERROR_INVALID_PARAMETER /* 2003 + */ || ret == ERROR_NOT_FOUND /* XP */,
+        "CredUIConfirmCredentials should have returned ERROR_INVALID_PARAMETER or ERROR_NOT_FOUND instead of %d\n", ret);
 
     ret = CredUIConfirmCredentialsW(wszServerName, TRUE);
     ok(ret == ERROR_NOT_FOUND, "CredUIConfirmCredentials should have returned ERROR_NOT_FOUND instead of %d\n", ret);




More information about the wine-cvs mailing list