Detlef Riekenberg : crypt32/tests: Fix a test on win9x.

Alexandre Julliard julliard at winehq.org
Mon Oct 13 06:39:19 CDT 2008


Module: wine
Branch: master
Commit: 846e613b873570ebf1ecfa45f5823549402fc5ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=846e613b873570ebf1ecfa45f5823549402fc5ea

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Oct 13 01:00:49 2008 +0200

crypt32/tests: Fix a test on win9x.

---

 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 558aa11..2027c4a 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1693,8 +1693,10 @@ static void testVerifyCertSig(HCRYPTPROV csp, const CRYPT_DATA_BLOB *toBeSigned,
         certBlob.pbData = (void *)0xdeadbeef;
         ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING,
          CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL);
-        ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION,
-         "Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError());
+        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());
+
         certBlob.cbData = size;
         certBlob.pbData = cert;
         ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING,




More information about the wine-cvs mailing list