Juan Lang : crypt32: Fix a test failure on Win98.
Alexandre Julliard
julliard at winehq.org
Thu Oct 16 06:07:07 CDT 2008
Module: wine
Branch: master
Commit: ad1c1c610737cb28435447394d2afe38db01bcbf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad1c1c610737cb28435447394d2afe38db01bcbf
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Oct 15 13:36:56 2008 -0700
crypt32: Fix a test failure on Win98.
---
dlls/crypt32/tests/cert.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 2027c4a..5e00e3a 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1694,8 +1694,10 @@ static void testVerifyCertSig(HCRYPTPROV csp, const CRYPT_DATA_BLOB *toBeSigned,
ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING,
CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL);
ok(!ret && (GetLastError() == STATUS_ACCESS_VIOLATION ||
- GetLastError() == CRYPT_E_ASN1_EOD /* Win9x */),
- "Expected STATUS_ACCESS_VIOLATION or CRYPT_E_ASN1_EOD, got %08x\n", GetLastError());
+ GetLastError() == CRYPT_E_ASN1_EOD /* Win9x */ ||
+ GetLastError() == CRYPT_E_ASN1_BADTAG /* Win98 */),
+ "Expected STATUS_ACCESS_VIOLATION, CRYPT_E_ASN1_EOD, OR CRYPT_E_ASN1_BADTAG, got %08x\n",
+ GetLastError());
certBlob.cbData = size;
certBlob.pbData = cert;
More information about the wine-cvs
mailing list