mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user