Juan Lang : crypt32: Trace time value in addition to address of time value.
Alexandre Julliard
julliard at winehq.org
Fri Oct 15 10:40:24 CDT 2010
Module: wine
Branch: master
Commit: 63a05db41cbd19127f9353f5008fcf9f922c0ca7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=63a05db41cbd19127f9353f5008fcf9f922c0ca7
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Oct 14 14:42:38 2010 -0700
crypt32: Trace time value in addition to address of time value.
---
dlls/crypt32/chain.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index b41412b..a813b64 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -2149,6 +2149,13 @@ static BOOL CRYPT_BuildSimpleChain(const CertificateChainEngine *engine,
return ret;
}
+static LPCSTR debugstr_filetime(LPFILETIME pTime)
+{
+ if (!pTime)
+ return "(nil)";
+ return wine_dbg_sprintf("%p (%s)", pTime, filetime_to_str(pTime));
+}
+
static BOOL CRYPT_GetSimpleChainForCert(PCertificateChainEngine engine,
HCERTSTORE world, PCCERT_CONTEXT cert, LPFILETIME pTime,
PCERT_SIMPLE_CHAIN *ppChain)
@@ -2156,7 +2163,7 @@ static BOOL CRYPT_GetSimpleChainForCert(PCertificateChainEngine engine,
BOOL ret = FALSE;
PCERT_SIMPLE_CHAIN chain;
- TRACE("(%p, %p, %p, %p)\n", engine, world, cert, pTime);
+ TRACE("(%p, %p, %p, %s)\n", engine, world, cert, debugstr_filetime(pTime));
chain = CryptMemAlloc(sizeof(CERT_SIMPLE_CHAIN));
if (chain)
@@ -2377,7 +2384,8 @@ static PCertificateChain CRYPT_BuildAlternateContextFromChain(
PCertificateChainEngine engine = (PCertificateChainEngine)hChainEngine;
PCertificateChain alternate;
- TRACE("(%p, %p, %p, %p)\n", hChainEngine, pTime, hAdditionalStore, chain);
+ TRACE("(%p, %s, %p, %p)\n", hChainEngine, debugstr_filetime(pTime),
+ hAdditionalStore, chain);
/* Always start with the last "lower quality" chain to ensure a consistent
* order of alternate creation:
@@ -2803,8 +2811,9 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
BOOL ret;
PCertificateChain chain = NULL;
- TRACE("(%p, %p, %p, %p, %p, %08x, %p, %p)\n", hChainEngine, pCertContext,
- pTime, hAdditionalStore, pChainPara, dwFlags, pvReserved, ppChainContext);
+ TRACE("(%p, %p, %s, %p, %p, %08x, %p, %p)\n", hChainEngine, pCertContext,
+ debugstr_filetime(pTime), hAdditionalStore, pChainPara, dwFlags,
+ pvReserved, ppChainContext);
if (ppChainContext)
*ppChainContext = NULL;
More information about the wine-cvs
mailing list