Fix accidentally introduced thread and memory leak when the cache should be run down

svn path=/trunk/; revision=27109
This commit is contained in:
Thomas Bluemel 2007-06-10 11:24:34 +00:00
parent f7d3dc0bd6
commit c3bd31ab5a

View file

@ -158,7 +158,11 @@ ReferenceSidCacheMgr(IN HANDLE SidCacheMgr)
static VOID
DereferenceSidCacheMgr(IN PSIDCACHEMGR scm)
{
InterlockedDecrement(&scm->RefCount);
if (InterlockedDecrement(&scm->RefCount) == 0)
{
/* Signal the lookup thread so it can terminate */
SetEvent(scm->LookupEvent);
}
}