kernel32: Better default for dwActiveProcessorMask in GetSystemInfo.
This commit is contained in:
parent
f3960b22b1
commit
a441935c37
|
@ -385,7 +385,7 @@ VOID WINAPI GetSystemInfo(
|
||||||
/* FIXME: the two entries below should be computed somehow... */
|
/* FIXME: the two entries below should be computed somehow... */
|
||||||
cachedsi.lpMinimumApplicationAddress = (void *)0x00010000;
|
cachedsi.lpMinimumApplicationAddress = (void *)0x00010000;
|
||||||
cachedsi.lpMaximumApplicationAddress = (void *)0x7FFEFFFF;
|
cachedsi.lpMaximumApplicationAddress = (void *)0x7FFEFFFF;
|
||||||
cachedsi.dwActiveProcessorMask = 1;
|
cachedsi.dwActiveProcessorMask = 0;
|
||||||
cachedsi.dwNumberOfProcessors = 1;
|
cachedsi.dwNumberOfProcessors = 1;
|
||||||
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
|
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
|
||||||
cachedsi.dwAllocationGranularity = 0x10000;
|
cachedsi.dwAllocationGranularity = 0x10000;
|
||||||
|
@ -785,6 +785,9 @@ VOID WINAPI GetSystemInfo(
|
||||||
#else
|
#else
|
||||||
FIXME("not yet supported on this system\n");
|
FIXME("not yet supported on this system\n");
|
||||||
#endif
|
#endif
|
||||||
|
if (!cachedsi.dwActiveProcessorMask)
|
||||||
|
cachedsi.dwActiveProcessorMask = (1 << cachedsi.dwNumberOfProcessors) - 1;
|
||||||
|
|
||||||
memcpy(si,&cachedsi,sizeof(*si));
|
memcpy(si,&cachedsi,sizeof(*si));
|
||||||
|
|
||||||
TRACE("<- CPU arch %d, res'd %d, pagesize %d, minappaddr %p, maxappaddr %p,"
|
TRACE("<- CPU arch %d, res'd %d, pagesize %d, minappaddr %p, maxappaddr %p,"
|
||||||
|
|
Loading…
Reference in New Issue