Skip to content

Commit

Permalink
[NTOS:MM] MmRebalanceMemoryConsumers: Fix PageOutThreadActive value c…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
TAN-Gaming committed Dec 24, 2024
1 parent 1e06829 commit 8fcd783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntoskrnl/mm/balance.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ VOID
NTAPI
MmRebalanceMemoryConsumers(VOID)
{
// if (InterlockedCompareExchange(&PageOutThreadActive, 0, 1) == 0)
if (InterlockedCompareExchange(&PageOutThreadActive, 1, 0) == 0)
{
KeSetEvent(&MiBalancerEvent, IO_NO_INCREMENT, FALSE);
}
Expand Down

0 comments on commit 8fcd783

Please sign in to comment.