Juan Lang : crypt32: Trace whenever a reference count changes, and change default debug channel to quiet the main crypt channel.
Alexandre Julliard
julliard at winehq.org
Wed Nov 4 10:26:25 CST 2009
Module: wine
Branch: master
Commit: 1f363cd399a9541992f2171c28faf8477d6c096b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f363cd399a9541992f2171c28faf8477d6c096b
Author: Juan Lang <juan.lang at gmail.com>
Date: Tue Nov 3 16:44:44 2009 -0800
crypt32: Trace whenever a reference count changes, and change default debug channel to quiet the main crypt channel.
---
dlls/crypt32/context.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c
index 109fcd4..b8ad220 100644
--- a/dlls/crypt32/context.c
+++ b/dlls/crypt32/context.c
@@ -24,7 +24,7 @@
#include "wine/list.h"
#include "crypt32_private.h"
-WINE_DEFAULT_DEBUG_CHANNEL(crypt);
+WINE_DEFAULT_DEBUG_CHANNEL(context);
typedef enum _ContextType {
ContextTypeData,
@@ -106,6 +106,7 @@ void Context_AddRef(void *context, size_t contextSize)
PBASE_CONTEXT baseContext = BASE_CONTEXT_FROM_CONTEXT(context, contextSize);
InterlockedIncrement(&baseContext->ref);
+ TRACE("%p's ref count is %d\n", context, baseContext->ref);
if (baseContext->type == ContextTypeLink)
{
void *linkedContext = Context_GetLinkedContext(context, contextSize);
@@ -116,6 +117,7 @@ void Context_AddRef(void *context, size_t contextSize)
while (linkedContext && linkedBase->type == ContextTypeLink)
{
InterlockedIncrement(&linkedBase->ref);
+ TRACE("%p's ref count is %d\n", linkedContext, linkedBase->ref);
linkedContext = Context_GetLinkedContext(linkedContext,
contextSize);
if (linkedContext)
@@ -132,6 +134,7 @@ void Context_AddRef(void *context, size_t contextSize)
linkedBase = BASE_CONTEXT_FROM_CONTEXT(linkedContext,
contextSize);
InterlockedIncrement(&linkedBase->ref);
+ TRACE("%p's ref count is %d\n", linkedContext, linkedBase->ref);
}
}
}
More information about the wine-cvs
mailing list