crypt32: Set *ppChainContext even on error.

This commit is contained in:
Juan Lang 2007-09-06 10:00:18 -07:00 committed by Alexandre Julliard
parent 31618f91dd
commit 69834b16ac
1 changed files with 2 additions and 2 deletions

View File

@ -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? */