[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
This commit is contained in:
Sir Richard 2010-09-30 03:17:14 +00:00
parent a14c76d2c8
commit 80d5d95d72

View file

@ -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