[NTOS]: Fix a bug in MiRemovePageByColor which caused corruption of the page list and could lead to crashes, re-use of freed memory, assuming active memory was free, etc.

svn path=/trunk/; revision=49557
This commit is contained in:
Sir Richard
2010-11-11 13:08:41 +00:00
parent 7a047a7902
commit 0bbcdaf47f
+1 -1
View File
@@ -265,7 +265,7 @@ MiRemovePageByColor(IN PFN_NUMBER PageIndex,
else
{
/* Set the list head's backlink instead */
ListHead->Blink = OldFlink;
ListHead->Blink = OldBlink;
}
/* Check if the back entry is the list head */