crypt32/tests: Fix a test failure on Vista and higher.
This commit is contained in:
parent
df3f2a1b13
commit
4a5ecb3236
|
@ -1686,8 +1686,9 @@ static void testGetCertChain(void)
|
|||
ret = pCertGetCertificateChain(NULL, cert, NULL, NULL, ¶, 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue