http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3f2a1
)
crypt32/tests: Fix a test failure on Vista and higher.
author
Paul Vriens
<Paul.Vriens.Wine@gmail.com>
Wed, 23 Sep 2009 07:08:45 +0000
(09:08 +0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 23 Sep 2009 10:34:49 +0000
(12:34 +0200)
dlls/crypt32/tests/chain.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/crypt32/tests/chain.c
b/dlls/crypt32/tests/chain.c
index a2f537cc6733ad8a258b03d2c3b745f0f6d694dc..27c2d8eeebfaee714ed9cb2c9c3ac827c268b672 100644
(file)
--- 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);