Skip to content

Commit 5429a44

Browse files
committed
if A ASSERT B => ASSERT(B or not A)
svn path=/trunk/; revision=55771
1 parent 5599318 commit 5429a44

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

reactos/ntoskrnl/mm/ARM3/pfnlist.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,8 @@ MiDecrementShareCount(IN PMMPFN Pfn1,
931931
ASSERT(Pfn1->u3.e2.ReferenceCount != 0);
932932
if (Pfn1->u3.e2.ReferenceCount == 1)
933933
{
934-
if(Pfn1->u3.e1.PrototypePte == 0)
935-
{
936-
/* In ReactOS, this path should always be hit with a deleted PFN */
937-
ASSERT(MI_IS_PFN_DELETED(Pfn1) == TRUE);
938-
}
934+
/* In ReactOS, this path should always be hit with a deleted PFN */
935+
ASSERT((MI_IS_PFN_DELETED(Pfn1) == TRUE) || (Pfn1->u3.e1.PrototypePte == 1));
939936

940937
/* Clear the last reference */
941938
Pfn1->u3.e2.ReferenceCount = 0;

0 commit comments

Comments
 (0)