From 787d0ab5641e8417667481862202569b9cdd0f02 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 3 Nov 2009 16:46:50 -0800 Subject: [PATCH] crypt32: Add an error if the ref count is invalid when releasing a context. --- dlls/crypt32/context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index b8ad220dc9c..e0c19321e73 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -173,7 +173,10 @@ BOOL Context_Release(void *context, size_t contextSize, BOOL ret = TRUE; if (base->ref <= 0) + { + ERR("%p's ref count is %d\n", context, base->ref); return FALSE; + } if (base->type == ContextTypeLink) { /* The linked context is of the same type as this, so release