Paul Vriens : advapi32/tests: Fix two test failures on Vista and W2K8.
Alexandre Julliard
julliard at winehq.org
Tue Jan 6 08:22:52 CST 2009
Module: wine
Branch: master
Commit: cd31fd393eae2f20e86374d18318ef5e3a2bf3cf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd31fd393eae2f20e86374d18318ef5e3a2bf3cf
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Mon Jan 5 17:51:46 2009 +0100
advapi32/tests: Fix two test failures on Vista and W2K8.
---
dlls/advapi32/tests/cred.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/advapi32/tests/cred.c b/dlls/advapi32/tests/cred.c
index e23f872..58103c6 100644
--- a/dlls/advapi32/tests/cred.c
+++ b/dlls/advapi32/tests/cred.c
@@ -180,16 +180,20 @@ static void test_CredReadDomainCredentialsA(void)
SetLastError(0xdeadbeef);
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
- ok(!ret && GetLastError() == ERROR_NOT_FOUND,
- "CredReadDomainCredentialsA should have failed with ERROR_NOT_FOUND instead of %d\n",
+ ok(!ret, "CredReadDomainCredentialsA should have failed\n");
+ ok(GetLastError() == ERROR_NOT_FOUND ||
+ GetLastError() == ERROR_INVALID_PARAMETER, /* Vista, W2K8 */
+ "Expected ERROR_NOT_FOUND or ERROR_INVALID_PARAMETER instead of %d\n",
GetLastError());
info.DnsServerName = NULL;
SetLastError(0xdeadbeef);
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
- ok(!ret && GetLastError() == ERROR_NOT_FOUND,
- "CredReadDomainCredentialsA should have failed with ERROR_NOT_FOUND instead of %d\n",
+ ok(!ret, "CredReadDomainCredentialsA should have failed\n");
+ ok(GetLastError() == ERROR_NOT_FOUND ||
+ GetLastError() == ERROR_INVALID_PARAMETER, /* Vista, W2K8 */
+ "Expected ERROR_NOT_FOUND or ERROR_INVALID_PARAMETER instead of %d\n",
GetLastError());
}
More information about the wine-cvs
mailing list