Module: wine Branch: master Commit: 0444cd93c42a61c66074007720e6280b0221c229 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0444cd93c42a61c66074007720...
Author: Juan Lang juan.lang@gmail.com Date: Thu Dec 10 08:58:20 2009 -0800
crypt32: Don't dereference an output pointer which may be NULL.
---
dlls/crypt32/store.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 3a786b0..9d670f9 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -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);