Signed-off-by: Esme Povirk esme@codeweavers.com --- This function is used by 2K Games launcher (Mafia: Definitive Edition, XCOM: Chimera Squad).
dlls/kernel32/kernel32.spec | 2 +- dlls/kernel32/process.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 0312e044a86..06f524a8080 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -719,7 +719,7 @@ @ stdcall -import GetLongPathNameW(wstr ptr long) @ stdcall GetMailslotInfo(long ptr ptr ptr ptr) @ stdcall GetMaximumProcessorCount(long) -# @ stub GetMaximumProcessorGroupCount +@ stdcall GetMaximumProcessorGroupCount() @ stdcall -import GetModuleFileNameA(long ptr long) @ stdcall -import GetModuleFileNameW(long ptr long) @ stdcall -import GetModuleHandleA(str) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index 41a5b34af19..08544c32398 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -635,6 +635,12 @@ DWORD WINAPI GetMaximumProcessorCount(WORD group) return cpus; }
+DWORD WINAPI GetMaximumProcessorGroupCount(void) +{ + FIXME("semi-stub, always returning 1\n"); + return 1; +} + /*********************************************************************** * GetFirmwareEnvironmentVariableA (KERNEL32.@) */
On Fri, Apr 9, 2021 at 2:06 PM Esme Povirk esme@codeweavers.com wrote:
dlls/kernel32/kernel32.spec | 2 +-
Hi Esme, thanks for sending this! I would love to see it accepted in order to reduce the diff between Wine and Wine Staging. api-ms-win-core-kernel32-legacy-l1-1-0.spec and api-ms-win-core-kernel32-legacy-l1-1-1.spec need to be updated too though.
-Alex