From 6bde649d94e8d1d4417cbceee8cc4e5e115ba4bf Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Fri, 19 Feb 2010 17:55:22 +0000 Subject: [PATCH] [NTOS]: It seems the code to release a page was not properly removing a page from the working set bitmap/list in one scenario, so I added the call here too. svn path=/trunk/; revision=45622 --- reactos/ntoskrnl/mm/balance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/ntoskrnl/mm/balance.c b/reactos/ntoskrnl/mm/balance.c index 9c30ae425e8..f70d80b44cf 100644 --- a/reactos/ntoskrnl/mm/balance.c +++ b/reactos/ntoskrnl/mm/balance.c @@ -120,6 +120,7 @@ MmReleasePageMemoryConsumer(ULONG Consumer, PFN_TYPE Page) if (IsListEmpty(&AllocationListHead) || MmAvailablePages < MiMinimumAvailablePages) { KeReleaseSpinLock(&AllocationListLock, OldIrql); + if(Consumer == MC_USER) MmRemoveLRUUserPage(Page); OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock); MmDereferencePage(Page); KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);