Author: pschweitzer
Date: Sun Jun 14 16:00:27 2015
New Revision: 68137
URL:
http://svn.reactos.org/svn/reactos?rev=68137&view=rev
Log:
[KERNEL32]
Addendum to r68136: use appropriate define.
Spotted by Thomas
Modified:
trunk/reactos/dll/win32/kernel32/client/sysinfo.c
Modified: trunk/reactos/dll/win32/kernel32/client/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/sysinfo.c [iso-8859-1] Sun Jun 14 16:00:27
2015
@@ -293,7 +293,7 @@
ULONGLONG Proc;
/* Can't handle processor number >= 32 */
- if (Processor >= 0x20)
+ if (Processor >= MAXIMUM_PROCESSORS)
{
*NodeNumber = -1;
SetLastError(ERROR_INVALID_PARAMETER);
@@ -314,7 +314,7 @@
/* Find ourselves */
Node = 0;
- Proc = (1ULL << Processor) >> 0x20;
+ Proc = (1ULL << Processor) >> MAXIMUM_PROCESSORS;
while ((Proc & NumaInformation.ActiveProcessorsAffinityMask[Node]) == 0ULL)
{
++Node;