mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
crypt32: Tighten CertDuplicateCertificateContext test.
Test that the return from CertDuplicateCertificateContext is the same as its parameter.
This commit is contained in:
parent
832dd3c749
commit
b40a406dc3
@ -143,17 +143,11 @@ static void testDupCert(void)
|
||||
|
||||
dupContext = CertDuplicateCertificateContext(context);
|
||||
ok(dupContext != NULL, "Expected valid duplicate\n");
|
||||
if (dupContext)
|
||||
{
|
||||
ok(dupContext->cbCertEncoded == sizeof(bigCert),
|
||||
"Expected cert of %d bytes, got %ld\n", sizeof(bigCert),
|
||||
dupContext->cbCertEncoded);
|
||||
ok(!memcmp(dupContext->pbCertEncoded, bigCert,
|
||||
sizeof(bigCert)),
|
||||
"Unexpected encoded cert in context\n");
|
||||
ok(dupContext->hCertStore == store, "Unexpected store\n");
|
||||
/* Not only is it a duplicate, it's identical: the address is the
|
||||
* same.
|
||||
*/
|
||||
ok(dupContext == context, "Expected identical context addresses\n");
|
||||
CertFreeCertificateContext(dupContext);
|
||||
}
|
||||
CertFreeCertificateContext(context);
|
||||
}
|
||||
CertCloseStore(store, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user