- Initialize the Zero variable
- Don't corrupt the Color value in case we didn't have any page on MmZeroedPageListHead.
- Fixes boot.
svn path=/trunk/; revision=49614
{
PFN_NUMBER PageIndex;
PMMPFN Pfn1;
- BOOLEAN Zero;
+ BOOLEAN Zero = FALSE;
/* Make sure PFN lock is held and we have pages */
ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
/* Check the zero list */
ASSERT_LIST_INVARIANT(&MmZeroedPageListHead);
PageIndex = MmZeroedPageListHead.Flink;
- Color = PageIndex & MmSecondaryColorMask;
if (PageIndex == LIST_HEAD)
{
/* This means there's no zero pages, we have to look for free ones */
}
}
}
+ else
+ {
+ Color = PageIndex & MmSecondaryColorMask;
+ }
}
/* Sanity checks */