- ASSERTify a hacky workaround -- this shouldn't happen anymore in ros

svn path=/trunk/; revision=37230
This commit is contained in:
Stefan Ginsberg 2008-11-06 19:21:46 +00:00
parent 9d11125a93
commit 87658f5321

View file

@ -299,11 +299,7 @@ ObfDereferenceObject(IN PVOID Object)
if (!OldCount)
{
/* Sanity check */
if (Header->HandleCount)
{
DPRINT1("Misbehaving object: %wZ\n", &Header->Type->Name);
return Header->PointerCount;
}
ASSERT(Header->HandleCount == 0);
/* Check if APCs are still active */
if (!KeAreAllApcsDisabled())