if A ASSERT B => ASSERT(B or not A)

svn path=/trunk/; revision=55771
This commit is contained in:
Jérôme Gardou 2012-02-21 00:46:18 +00:00
parent 55993182a9
commit 5429a4441e

View file

@ -931,11 +931,8 @@ MiDecrementShareCount(IN PMMPFN Pfn1,
ASSERT(Pfn1->u3.e2.ReferenceCount != 0);
if (Pfn1->u3.e2.ReferenceCount == 1)
{
if(Pfn1->u3.e1.PrototypePte == 0)
{
/* In ReactOS, this path should always be hit with a deleted PFN */
ASSERT(MI_IS_PFN_DELETED(Pfn1) == TRUE);
}
/* In ReactOS, this path should always be hit with a deleted PFN */
ASSERT((MI_IS_PFN_DELETED(Pfn1) == TRUE) || (Pfn1->u3.e1.PrototypePte == 1));
/* Clear the last reference */
Pfn1->u3.e2.ReferenceCount = 0;