[PATCH resend3 2/2] kernel32: Reimplement GetMaximumProcessorCount on top of SystemCpuInformation
Alexandre Julliard
julliard at winehq.org
Fri Apr 30 09:18:56 CDT 2021
Alex Henrie <alexhenrie24 at gmail.com> writes:
> @@ -629,9 +630,13 @@ DWORD WINAPI GetActiveProcessorCount(WORD group)
> */
> DWORD WINAPI GetMaximumProcessorCount(WORD group)
> {
> - DWORD cpus = system_info.NumberOfProcessors;
> + DWORD cpus = cpu_info.MaximumCpus;
> +
> + if (group == ALL_PROCESSOR_GROUPS)
> + TRACE("(0x%x): returning %u\n", group, cpus);
> + else
> + FIXME("(0x%x): processor groups not supported, returning %u\n", group, cpus);
That doesn't seem much better than the previous stub. It shouldn't be
hard to implement these functions correctly now that we support
GetLogicalProcessorInformationEx().
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list