Module: wine Branch: master Commit: a441935c37fccab66747171c910a9d05d1ffeb4c URL: http://source.winehq.org/git/wine.git/?a=commit;h=a441935c37fccab66747171c91...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Mar 30 12:22:13 2007 +0200
kernel32: Better default for dwActiveProcessorMask in GetSystemInfo.
---
dlls/kernel32/cpu.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c index 9fbf165..27a50ae 100644 --- a/dlls/kernel32/cpu.c +++ b/dlls/kernel32/cpu.c @@ -385,7 +385,7 @@ VOID WINAPI GetSystemInfo( /* FIXME: the two entries below should be computed somehow... */ cachedsi.lpMinimumApplicationAddress = (void *)0x00010000; cachedsi.lpMaximumApplicationAddress = (void *)0x7FFEFFFF; - cachedsi.dwActiveProcessorMask = 1; + cachedsi.dwActiveProcessorMask = 0; cachedsi.dwNumberOfProcessors = 1; cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM; cachedsi.dwAllocationGranularity = 0x10000; @@ -785,6 +785,9 @@ VOID WINAPI GetSystemInfo( #else FIXME("not yet supported on this system\n"); #endif + if (!cachedsi.dwActiveProcessorMask) + cachedsi.dwActiveProcessorMask = (1 << cachedsi.dwNumberOfProcessors) - 1; + memcpy(si,&cachedsi,sizeof(*si));
TRACE("<- CPU arch %d, res'd %d, pagesize %d, minappaddr %p, maxappaddr %p,"