From a16ca1d0395a079418c5bc163a3b8440d125fb88 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 4 Nov 2009 16:45:52 -0800 Subject: [PATCH] crypt32: Add a warning if a store's ref count is invalid. --- dlls/crypt32/store.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 69578f23f20..3a786b05cf4 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -1175,6 +1175,8 @@ BOOL WINAPI CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags) if ( hcs->dwMagic != WINE_CRYPTCERTSTORE_MAGIC ) return FALSE; + if (hcs->ref <= 0) + ERR("%p's ref count is %d\n", hcs, hcs->ref); if (InterlockedDecrement(&hcs->ref) == 0) { TRACE("%p's ref count is 0, freeing\n", hcs); -- 2.11.4.GIT