update for HEAD-2003091401
[reactos.git] / ntoskrnl / mm / wset.c
index dc42ca0..97ce23e 100644 (file)
@@ -59,6 +59,10 @@ MmTrimUserMemory(ULONG Target, ULONG Priority, PULONG NrFreedPages)
          Target--;
          (*NrFreedPages)++;
        }
+      else if (Status == STATUS_PAGEFILE_QUOTA)
+       {
+         MmSetLRULastPage(CurrentPhysicalAddress);
+       }
 
       CurrentPhysicalAddress = NextPhysicalAddress;
     }