crypt32: Add a warning if a store's ref count is invalid.

This commit is contained in:
Juan Lang 2009-11-04 16:45:52 -08:00 committed by Alexandre Julliard
parent 88e599c4cf
commit a16ca1d039
1 changed files with 2 additions and 0 deletions

View File

@ -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);