Alexandre Julliard : kernel32: Fixed the active processor mask on Mac OS.
Alexandre Julliard
julliard at winehq.org
Mon Feb 18 08:50:47 CST 2008
Module: wine
Branch: master
Commit: 3d418add04d272cef566f56bc35d7178a004395e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d418add04d272cef566f56bc35d7178a004395e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Feb 18 14:09:49 2008 +0100
kernel32: Fixed the active processor mask on Mac OS.
---
dlls/kernel32/cpu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c
index d9a704b..1f3d945 100644
--- a/dlls/kernel32/cpu.c
+++ b/dlls/kernel32/cpu.c
@@ -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)
{
More information about the wine-cvs
mailing list