[PATCH 2/2] Fix a test failure on Vista and higher
Paul Vriens
Paul.Vriens.Wine at gmail.com
Wed Sep 23 02:08:45 CDT 2009
---
dlls/crypt32/tests/chain.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index a2f537c..27c2d8e 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -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);
--
1.6.2.5
--------------080703090409010807060503--
More information about the wine-patches
mailing list