[PATCH 3/3] Fix a test failure on older crypt32
Paul Vriens
Paul.Vriens.Wine at gmail.com
Wed Nov 18 08:12:52 CST 2009
---
dlls/crypt32/tests/cert.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 4a1c449..0bc4fda 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -2709,7 +2709,9 @@ static void testIsRDNAttrsInCertificateName(void)
"expected CRYPT_E_NO_MATCH, got %08x\n", GetLastError());
ret = CertIsRDNAttrsInCertificateName(X509_ASN_ENCODING,
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG, &name, &rdn);
- ok(ret, "CertIsRDNAttrsInCertificateName failed: %08x\n", GetLastError());
+ ok(ret ||
+ broken(!ret && GetLastError() == CRYPT_E_NO_MATCH), /* Older crypt32 */
+ "CertIsRDNAttrsInCertificateName failed: %08x\n", GetLastError());
/* The values don't match unless they have the same RDN type */
attr[0].dwValueType = CERT_RDN_UNICODE_STRING;
attr[0].Value.cbData = lstrlenW(juanW) * sizeof(WCHAR);
--
1.6.2.5
--------------070507080408010306000200--
More information about the wine-patches
mailing list