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

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