Juan Lang : crypt32: Set *ppChainContext even on error.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 10 10:18:00 CDT 2007
Module: wine
Branch: master
Commit: 69834b16accf0fcb7335ee7c807486b86d2997db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69834b16accf0fcb7335ee7c807486b86d2997db
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Sep 6 10:00:18 2007 -0700
crypt32: Set *ppChainContext even on error.
---
dlls/crypt32/chain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index e9870f8..3759877 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -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? */
More information about the wine-cvs
mailing list