From cd31fd393eae2f20e86374d18318ef5e3a2bf3cf Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 5 Jan 2009 17:51:46 +0100 Subject: [PATCH] advapi32/tests: Fix two test failures on Vista and W2K8. --- dlls/advapi32/tests/cred.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dlls/advapi32/tests/cred.c b/dlls/advapi32/tests/cred.c index e23f8721c09..58103c63166 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()); }