James Hawkins : crypt32: Fix a failing test in XP.
Module: wine Branch: master Commit: f9b0620f9fabdad2eb2979a6ccfb0b525b50e9b4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9b0620f9fabdad2eb2979a6cc... Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Aug 28 21:11:41 2008 -0500 crypt32: Fix a failing test in XP. --- 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 515098a..cd0808a 100644 --- a/dlls/crypt32/tests/cert.c +++ b/dlls/crypt32/tests/cert.c @@ -511,8 +511,10 @@ static void testCertProperties(void) size = 0; ret = CertGetCertificateContextProperty(context, CERT_SIGNATURE_HASH_PROP_ID, NULL, &size); - ok(!ret && GetLastError() == CRYPT_E_ASN1_BADTAG, - "Expected CRYPT_E_ASN1_BADTAG, got %08x\n", GetLastError()); + ok(!ret && + (GetLastError() == CRYPT_E_ASN1_BADTAG || + GetLastError() == CRYPT_E_NOT_FOUND), + "Expected CRYPT_E_ASN1_BADTAG, got %08x\n", GetLastError()); /* Test key contexts and handles and such */ size = 0;
participants (1)
-
Alexandre Julliard