Author: fireball
Date: Mon Nov 28 19:53:38 2011
New Revision: 54528
URL:
http://svn.reactos.org/svn/reactos?rev=54528&view=rev
Log:
[NTOS]
- Nikolay Myltsev: Fix incorrect balancer thread id check.
See issue #5857 for more details.
Modified:
trunk/reactos/ntoskrnl/mm/balance.c
Modified: trunk/reactos/ntoskrnl/mm/balance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/balance.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] Mon Nov 28 19:53:38 2011
@@ -216,8 +216,8 @@
static BOOLEAN
MiIsBalancerThread(VOID)
{
- return MiBalancerThreadHandle != NULL &&
- PsGetCurrentThread() == MiBalancerThreadId.UniqueThread;
+ return (MiBalancerThreadHandle != NULL) &&
+ (PsGetCurrentThreadId() == MiBalancerThreadId.UniqueThread);
}
NTSTATUS