crypt32/tests: Fix a test failure on Vista and higher.

This commit is contained in:
Paul Vriens 2009-09-23 09:08:45 +02:00 committed by Alexandre Julliard
parent df3f2a1b13
commit 4a5ecb3236
1 changed files with 3 additions and 2 deletions

View File

@ -1686,8 +1686,9 @@ static void testGetCertChain(void)
ret = pCertGetCertificateChain(NULL, cert, NULL, NULL, &para, 0, NULL,
&chain);
ok(!ret, "Expected failure\n");
ok(GetLastError() == ERROR_INVALID_DATA,
"Expected ERROR_INVALID_DATA, got %u\n", GetLastError());
ok(GetLastError() == ERROR_INVALID_DATA ||
GetLastError() == CRYPT_E_ASN1_BADTAG, /* Vista and higher */
"Expected ERROR_INVALID_DATA or CRYPT_E_ASN1_BADTAG, got %d\n", GetLastError());
CertFreeCertificateContext(cert);