Module: wine Branch: master Commit: 4a5ecb3236c073ae294c5979cd20deef2c7bbe8f URL: http://source.winehq.org/git/wine.git/?a=commit;h=4a5ecb3236c073ae294c5979cd...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed Sep 23 09:08:45 2009 +0200
crypt32/tests: Fix a test failure on Vista and higher.
---
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);