mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 13:15:07 +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
|
@ -339,10 +339,12 @@ MiRemoveAnyPage(IN ULONG Color)
|
||||||
#if 0
|
#if 0
|
||||||
/* Check the colored free list */
|
/* Check the colored free list */
|
||||||
PageIndex = MmFreePagesByColor[FreePageList][Color].Flink;
|
PageIndex = MmFreePagesByColor[FreePageList][Color].Flink;
|
||||||
|
DPRINT1("Found free page: %lx\n", PageIndex);
|
||||||
if (PageIndex == LIST_HEAD)
|
if (PageIndex == LIST_HEAD)
|
||||||
{
|
{
|
||||||
/* Check the colored zero list */
|
/* Check the colored zero list */
|
||||||
PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink;
|
PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink;
|
||||||
|
DPRINT1("Found zero page: %lx\n", PageIndex);
|
||||||
if (PageIndex == LIST_HEAD)
|
if (PageIndex == LIST_HEAD)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
@ -413,7 +415,7 @@ MiRemoveZeroPage(IN ULONG Color)
|
||||||
Zero = TRUE;
|
Zero = TRUE;
|
||||||
#if 0
|
#if 0
|
||||||
/* Check the colored free list */
|
/* Check the colored free list */
|
||||||
PageIndex = MmFreePagesByColor[ZeroedPageList][Color].Flink;
|
PageIndex = MmFreePagesByColor[FreePageList][Color].Flink;
|
||||||
if (PageIndex == LIST_HEAD)
|
if (PageIndex == LIST_HEAD)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue