crypt32: Add a warning if a store's ref count is invalid.
This commit is contained in:
parent
88e599c4cf
commit
a16ca1d039
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue