Author: sir_richard
Date: Thu Sep 30 03:17:14 2010
New Revision: 48936
URL:
http://svn.reactos.org/svn/reactos?rev=48936&view=rev
Log:
[NTOS]: Fix a bug in MiRemoveAnyPage: it was always checking the colored zero page list,
instead of checking the colored free page list the second time around.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] Thu Sep 30 03:17:14 2010
@@ -339,10 +339,12 @@
#if 0
/* Check the colored free list */
PageIndex = MmFreePagesByColor[FreePageList][Color].Flink;
+ DPRINT1("Found free page: %lx\n", PageIndex);
if (PageIndex == LIST_HEAD)
{
/* Check the colored zero list */
PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink;
+ DPRINT1("Found zero page: %lx\n", PageIndex);
if (PageIndex == LIST_HEAD)
{
#endif
@@ -413,7 +415,7 @@
Zero = TRUE;
#if 0
/* Check the colored free list */
- PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink;
+ PageIndex = MmFreePagesByColor[FreePageList][Color].Flink;
if (PageIndex == LIST_HEAD)
{
#endif