Commit 7f5b24ed authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

crypt32/tests: Fix a test failure on older crypt32.

parent 21bc1ddf
...@@ -2709,7 +2709,9 @@ static void testIsRDNAttrsInCertificateName(void) ...@@ -2709,7 +2709,9 @@ static void testIsRDNAttrsInCertificateName(void)
"expected CRYPT_E_NO_MATCH, got %08x\n", GetLastError()); "expected CRYPT_E_NO_MATCH, got %08x\n", GetLastError());
ret = CertIsRDNAttrsInCertificateName(X509_ASN_ENCODING, ret = CertIsRDNAttrsInCertificateName(X509_ASN_ENCODING,
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG, &name, &rdn); 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 */ /* The values don't match unless they have the same RDN type */
attr[0].dwValueType = CERT_RDN_UNICODE_STRING; attr[0].dwValueType = CERT_RDN_UNICODE_STRING;
attr[0].Value.cbData = lstrlenW(juanW) * sizeof(WCHAR); attr[0].Value.cbData = lstrlenW(juanW) * sizeof(WCHAR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment