kernel32: Fixed the active processor mask on Mac OS.

This commit is contained in:
Alexandre Julliard 2008-02-18 14:09:49 +01:00
parent 8a590e8daa
commit 3d418add04
1 changed files with 4 additions and 4 deletions

View File

@ -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)
{