mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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:
parent
a14c76d2c8
commit
80d5d95d72
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue