mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00
[KERNEL32]
Addendum to r68136: use appropriate define. Spotted by Thomas svn path=/trunk/; revision=68137
This commit is contained in:
parent
0680a926e0
commit
a4ff3c9e3f
1 changed files with 2 additions and 2 deletions
|
@ -293,7 +293,7 @@ GetNumaProcessorNode(IN UCHAR Processor,
|
|||
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 @@ GetNumaProcessorNode(IN UCHAR Processor,
|
|||
|
||||
/* Find ourselves */
|
||||
Node = 0;
|
||||
Proc = (1ULL << Processor) >> 0x20;
|
||||
Proc = (1ULL << Processor) >> MAXIMUM_PROCESSORS;
|
||||
while ((Proc & NumaInformation.ActiveProcessorsAffinityMask[Node]) == 0ULL)
|
||||
{
|
||||
++Node;
|
||||
|
|
Loading…
Reference in a new issue