Commit c25753ec authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

crypt32: Pass the correct pointer into CertificateFindStore.

parent 8575935f
...@@ -1089,7 +1089,7 @@ static void testFindCert(void) ...@@ -1089,7 +1089,7 @@ static void testFindCert(void)
* the issuer, not the subject * the issuer, not the subject
*/ */
context = CertFindCertificateInStore(store, X509_ASN_ENCODING, 0, context = CertFindCertificateInStore(store, X509_ASN_ENCODING, 0,
CERT_FIND_SUBJECT_CERT, &certInfo.Subject, NULL); CERT_FIND_SUBJECT_CERT, &certInfo, NULL);
ok(context == NULL, "Expected no certificate\n"); ok(context == NULL, "Expected no certificate\n");
certInfo.Subject.pbData = NULL; certInfo.Subject.pbData = NULL;
certInfo.Subject.cbData = 0; certInfo.Subject.cbData = 0;
...@@ -1102,7 +1102,7 @@ static void testFindCert(void) ...@@ -1102,7 +1102,7 @@ static void testFindCert(void)
if (context) if (context)
{ {
context = CertFindCertificateInStore(store, X509_ASN_ENCODING, 0, context = CertFindCertificateInStore(store, X509_ASN_ENCODING, 0,
CERT_FIND_SUBJECT_CERT, &certInfo.Subject, context); CERT_FIND_SUBJECT_CERT, &certInfo, context);
ok(context == NULL, "Expected one cert only\n"); ok(context == NULL, "Expected one cert only\n");
} }
/* A non-matching serial number will not match. */ /* A non-matching serial number will not match. */
......
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