kernel32: Fixed the active processor mask on Mac OS.
This commit is contained in:
parent
8a590e8daa
commit
3d418add04
|
@ -687,7 +687,7 @@ VOID WINAPI GetSystemInfo(
|
|||
|
||||
valSize = sizeof(int);
|
||||
if (sysctlbyname ("hw.activecpu", &value, &valSize, NULL, 0) == 0)
|
||||
cachedsi.dwActiveProcessorMask = value;
|
||||
cachedsi.dwActiveProcessorMask = (1 << value) - 1;
|
||||
|
||||
valSize = sizeof(int);
|
||||
if (sysctlbyname ("hw.cputype", &cputype, &valSize, NULL, 0) == 0)
|
||||
|
|
Loading…
Reference in New Issue