diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index a244715c4a2..127739a29cc 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -180,6 +180,8 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine, pCertContext, pTime, hAdditionalStore, pChainPara, dwFlags, pvReserved, ppChainContext); + if (ppChainContext) + *ppChainContext = NULL; SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; }