[PATCH] kernel32: add GetNumaNodeProcessorMaskEx stub

Austin English austinenglish at gmail.com
Mon Mar 19 14:15:59 CDT 2018


Fixes https://bugs.winehq.org/show_bug.cgi?id=44776

FFMpeg has a crash at the end of encoding, but it appears to be an unrelated
issue, as I'm able to re-encode a video with h265 and play it in VLC.

Signed-off-by: Austin English <austinenglish at gmail.com>
---
 dlls/kernel32/kernel32.spec |  2 +-
 dlls/kernel32/process.c     | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 3a0bef93e7..aae22eb650 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -746,7 +746,7 @@
 @ stdcall GetNumaHighestNodeNumber(ptr)
 # @ stub GetNumaNodeNumberFromHandle
 @ stdcall GetNumaNodeProcessorMask(long ptr)
-# @ stub GetNumaNodeProcessorMaskEx
+@ stdcall GetNumaNodeProcessorMaskEx(long ptr)
 # @ stub GetNumaProcessorMap
 @ stdcall GetNumaProcessorNode(long ptr)
 # @ stub GetNumaProcessorNodeEx
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 4798100d2c..0783ef870e 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -4373,3 +4373,13 @@ BOOL WINAPI BaseFlushAppcompatCache(void)
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return FALSE;
 }
+
+/**********************************************************************
+ *           GetNumaNodeProcessorMaskEx     (KERNEL32.@)
+ */
+BOOL WINAPI GetNumaNodeProcessorMaskEx(USHORT node, PGROUP_AFFINITY mask)
+{
+    FIXME("(%hu %p): stub\n", node, mask);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
-- 
2.16.1




More information about the wine-devel mailing list