advapi32/tests: Fix two test failures on Vista and W2K8.
This commit is contained in:
parent
8507911264
commit
cd31fd393e
@ -180,16 +180,20 @@ static void test_CredReadDomainCredentialsA(void)
|
|||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
|
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
|
||||||
ok(!ret && GetLastError() == ERROR_NOT_FOUND,
|
ok(!ret, "CredReadDomainCredentialsA should have failed\n");
|
||||||
"CredReadDomainCredentialsA should have failed with ERROR_NOT_FOUND instead of %d\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());
|
GetLastError());
|
||||||
|
|
||||||
info.DnsServerName = NULL;
|
info.DnsServerName = NULL;
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
|
ret = pCredReadDomainCredentialsA(&info, 0, &count, &creds);
|
||||||
ok(!ret && GetLastError() == ERROR_NOT_FOUND,
|
ok(!ret, "CredReadDomainCredentialsA should have failed\n");
|
||||||
"CredReadDomainCredentialsA should have failed with ERROR_NOT_FOUND instead of %d\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());
|
GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user