[PATCH 2/3] kernel32: add GetActiveProcessorCount stub
Austin English
austinenglish at gmail.com
Thu May 18 23:15:29 CDT 2017
Signed-off-by: Austin English <austinenglish at gmail.com>
---
dlls/kernel32/cpu.c | 15 +++++++++++++++
dlls/kernel32/kernel32.spec | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c
index bccbfa92aa..2e0e79f8e8 100644
--- a/dlls/kernel32/cpu.c
+++ b/dlls/kernel32/cpu.c
@@ -312,3 +312,18 @@ WORD WINAPI GetActiveProcessorGroupCount(void)
FIXME("semi-stub, always returning 1\n");
return 1;
}
+
+/***********************************************************************
+ * GetActiveProcessorCount (KERNEL32.@)
+ */
+DWORD WINAPI GetActiveProcessorCount(WORD group)
+{
+ SYSTEM_INFO si;
+ DWORD cpus;
+
+ GetSystemInfo( &si );
+ cpus = si.dwNumberOfProcessors;
+
+ FIXME("semi-stub, returning %u\n", cpus);
+ return cpus;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 997e47a6c6..3260cdd823 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -540,7 +540,7 @@
@ stdcall GenerateConsoleCtrlEvent(long long)
@ stdcall -i386 -private Get16DLLAddress(long str) krnl386.exe16.Get16DLLAddress
@ stdcall GetACP()
-# @ stub GetActiveProcessorCount
+@ stdcall GetActiveProcessorCount(long)
@ stdcall GetActiveProcessorGroupCount()
# @ stub GetApplicationRecoveryCallback
# @ stub GetApplicationRestartSettings
--
2.13.0
More information about the wine-patches
mailing list