crypt32: Don't dereference an output pointer which may be NULL.
This commit is contained in:
parent
1740d9fe44
commit
0444cd93c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue