crypt32: Set *ppChainContext even on error.
This commit is contained in:
parent
31618f91dd
commit
69834b16ac
|
@ -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? */
|
||||
|
|
Loading…
Reference in New Issue