
|
crypt32(8/13): Trace whenever a reference count changes, and change default debug channel to quiet the main crypt channel
--Juan
[0008-Trace-whenever-a-reference-count-changes-and-change.patch] From a8a11e08b3616d5d2b73d9796c1c9792f5bcb8b1 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang@...>
Date: Tue, 3 Nov 2009 16:44:44 -0800
Subject: [PATCH] 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);
}
}
}
--
1.6.0.6
|