- Nikolay Myltsev: Fix incorrect balancer thread id check.
See issue #5857 for more details.

svn path=/trunk/; revision=54528
This commit is contained in:
Aleksey Bragin 2011-11-28 19:53:38 +00:00
parent f88bacce5d
commit e86ebe01cc

View file

@ -216,8 +216,8 @@ MmRebalanceMemoryConsumers(VOID)
static BOOLEAN static BOOLEAN
MiIsBalancerThread(VOID) MiIsBalancerThread(VOID)
{ {
return MiBalancerThreadHandle != NULL && return (MiBalancerThreadHandle != NULL) &&
PsGetCurrentThread() == MiBalancerThreadId.UniqueThread; (PsGetCurrentThreadId() == MiBalancerThreadId.UniqueThread);
} }
NTSTATUS NTSTATUS