crypt32: Don't free a certificate that hasn't been removed from its store.

This commit is contained in:
Juan Lang 2009-08-10 10:42:55 -07:00 committed by Alexandre Julliard
parent b9c3e9310a
commit ef79507d88
1 changed files with 2 additions and 1 deletions

View File

@ -978,6 +978,7 @@ BOOL WINAPI CertDeleteCertificateFromStore(PCCERT_CONTEXT pCertContext)
ret = FALSE;
else
ret = hcs->certs.deleteContext(hcs, (void *)pCertContext);
if (ret)
CertFreeCertificateContext(pCertContext);
}
return ret;