[KERNEL32]

Addendum to r68136: use appropriate define.
Spotted by Thomas

svn path=/trunk/; revision=68137
This commit is contained in:
Pierre Schweitzer 2015-06-14 16:00:27 +00:00
parent 0680a926e0
commit a4ff3c9e3f

View file

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