crypt32: Don't dereference an output pointer which may be NULL.

This commit is contained in:
Juan Lang 2009-12-10 08:58:20 -08:00 committed by Alexandre Julliard
parent 1740d9fe44
commit 0444cd93c4
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,8 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
if (existing)
{
CertContext_CopyProperties(existing, pCertContext);
*ppStoreContext = CertDuplicateCertificateContext(existing);
if (ppStoreContext)
*ppStoreContext = CertDuplicateCertificateContext(existing);
}
else
toAdd = CertDuplicateCertificateContext(pCertContext);