[KERNEL32]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 14 Jun 2015 16:00:27 +0000 (16:00 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 14 Jun 2015 16:00:27 +0000 (16:00 +0000)
Addendum to r68136: use appropriate define.
Spotted by Thomas

svn path=/trunk/; revision=68137

reactos/dll/win32/kernel32/client/sysinfo.c

index e208755..77b950f 100644 (file)
@@ -293,7 +293,7 @@ GetNumaProcessorNode(IN UCHAR Processor,
     ULONGLONG Proc;
 
     /* Can't handle processor number >= 32 */
     ULONGLONG Proc;
 
     /* Can't handle processor number >= 32 */
-    if (Processor >= 0x20)
+    if (Processor >= MAXIMUM_PROCESSORS)
     {
         *NodeNumber = -1;
         SetLastError(ERROR_INVALID_PARAMETER);
     {
         *NodeNumber = -1;
         SetLastError(ERROR_INVALID_PARAMETER);
@@ -314,7 +314,7 @@ GetNumaProcessorNode(IN UCHAR Processor,
 
     /* Find ourselves */
     Node = 0;
 
     /* Find ourselves */
     Node = 0;
-    Proc = (1ULL << Processor) >> 0x20;
+    Proc = (1ULL << Processor) >> MAXIMUM_PROCESSORS;
     while ((Proc & NumaInformation.ActiveProcessorsAffinityMask[Node]) == 0ULL)
     {
         ++Node;
     while ((Proc & NumaInformation.ActiveProcessorsAffinityMask[Node]) == 0ULL)
     {
         ++Node;