From 80d5d95d72797167ca8baa003708da9fc2897065 Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Thu, 30 Sep 2010 03:17:14 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=48936 --- reactos/ntoskrnl/mm/ARM3/pfnlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/ARM3/pfnlist.c b/reactos/ntoskrnl/mm/ARM3/pfnlist.c index e966ad1677e..48f5060e59a 100644 --- a/reactos/ntoskrnl/mm/ARM3/pfnlist.c +++ b/reactos/ntoskrnl/mm/ARM3/pfnlist.c @@ -339,10 +339,12 @@ MiRemoveAnyPage(IN ULONG Color) #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 @@ MiRemoveZeroPage(IN ULONG Color) Zero = TRUE; #if 0 /* Check the colored free list */ - PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink; + PageIndex = MmFreePagesByColor[FreePageList][Color].Flink; if (PageIndex == LIST_HEAD) { #endif