Austin English : kernel32: Add GetActiveProcessorCount stub.

Alexandre Julliard julliard at winehq.org
Wed May 24 17:17:35 CDT 2017


Module: wine
Branch: master
Commit: 66b37c556c4e1aa6531a556786e8d4b1acfa13d6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=66b37c556c4e1aa6531a556786e8d4b1acfa13d6

Author: Austin English <austinenglish at gmail.com>
Date:   Thu May 18 23:15:29 2017 -0500

kernel32: Add GetActiveProcessorCount stub.

Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 bccbfa9..2e0e79f 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 997e47a..3260cdd 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




More information about the wine-cvs mailing list