[PATCH] crypt32: Pass the correct pointer into CertificateFindStore
Marcus Meissner
meissner at suse.de
Mon Nov 9 06:44:22 CST 2009
Hi,
My first 64bit fix :)
this crashes the 64bit tests (but not the 32bit ones). The
FIND_SUBJECT part needs the whole CERT_INFO not just the SUBJECT.
(I hate void* passing ... this API frankly sucks :/)
Ciao, Marcus
---
dlls/crypt32/tests/cert.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 4dc8846..e1c8262 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1089,7 +1089,7 @@ static void testFindCert(void)
* the issuer, not the subject
*/
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");
certInfo.Subject.pbData = NULL;
certInfo.Subject.cbData = 0;
@@ -1102,7 +1102,7 @@ static void testFindCert(void)
if (context)
{
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");
}
/* A non-matching serial number will not match. */
--
1.6.4.2
More information about the wine-patches
mailing list