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)
|
if (existing)
|
||||||
{
|
{
|
||||||
CertContext_CopyProperties(existing, pCertContext);
|
CertContext_CopyProperties(existing, pCertContext);
|
||||||
*ppStoreContext = CertDuplicateCertificateContext(existing);
|
if (ppStoreContext)
|
||||||
|
*ppStoreContext = CertDuplicateCertificateContext(existing);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
toAdd = CertDuplicateCertificateContext(pCertContext);
|
toAdd = CertDuplicateCertificateContext(pCertContext);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user