Commit 69834b16 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Set *ppChainContext even on error.

parent 31618f91
......@@ -644,13 +644,13 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
TRACE("(%p, %p, %p, %p, %p, %08x, %p, %p)\n", hChainEngine, pCertContext,
pTime, hAdditionalStore, pChainPara, dwFlags, pvReserved, ppChainContext);
if (ppChainContext)
*ppChainContext = NULL;
if (!pChainPara)
{
SetLastError(E_INVALIDARG);
return FALSE;
}
if (ppChainContext)
*ppChainContext = NULL;
if (!hChainEngine)
hChainEngine = CRYPT_GetDefaultChainEngine();
/* FIXME: what about HCCE_LOCAL_MACHINE? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment