Commit 3d418add authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fixed the active processor mask on Mac OS.

parent 8a590e8d
No related merge requests found
......@@ -683,12 +683,12 @@ VOID WINAPI GetSystemInfo(
}
valSize = sizeof(int);
if (sysctlbyname ("hw.ncpu", &value, &valSize, NULL, 0) == 0)
cachedsi.dwNumberOfProcessors = value;
cachedsi.dwNumberOfProcessors = value;
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment