Author: cgutman
Date: Mon Feb 6 15:04:12 2012
New Revision: 55461
URL:
http://svn.reactos.org/svn/reactos?rev=55461&view=rev
Log:
[NTOSKRNL]
- Assert that reference counts are sane in MmReferencePage and MmDereferencePage
Modified:
trunk/reactos/ntoskrnl/mm/freelist.c
Modified: trunk/reactos/ntoskrnl/mm/freelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Mon Feb 6 15:04:12 2012
@@ -501,6 +501,7 @@
ASSERT(Page);
ASSERT_IS_ROS_PFN(Page);
+ ASSERT(Page->u3.e2.ReferenceCount != 0);
Page->u3.e2.ReferenceCount++;
}
@@ -543,6 +544,7 @@
ASSERT(Page);
ASSERT_IS_ROS_PFN(Page);
+ ASSERT(Page->u3.e2.ReferenceCount != 0);
Page->u3.e2.ReferenceCount--;
if (Page->u3.e2.ReferenceCount == 0)
{