Module: wine Branch: master Commit: a16ca1d0395a079418c5bc163a3b8440d125fb88 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a16ca1d0395a079418c5bc163a...
Author: Juan Lang juan.lang@gmail.com Date: Wed Nov 4 16:45:52 2009 -0800
crypt32: Add a warning if a store's ref count is invalid.
---
dlls/crypt32/store.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 69578f2..3a786b0 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);