Add ntoskrnl.exe-KeRevertToUserAffinityThreadEx patchset

This commit is contained in:
Alistair Leslie-Hughes 2020-05-24 17:41:57 +10:00
parent 2263ec0d3d
commit bca232f190
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,45 @@
From 526cfe34f7c949216d79cf34ed71b3b61bc7c448 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Sat, 23 May 2020 18:56:12 +1000
Subject: [PATCH] ntoskrnl.exe: Add KeRevertToUserAffinityThreadEx stub
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49222
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
---
dlls/ntoskrnl.exe/ntoskrnl.c | 7 +++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 1 +
2 files changed, 8 insertions(+)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index bb5fbdbe17c3..ea5ead5c6dce 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2477,6 +2477,13 @@ void WINAPI KeRevertToUserAffinityThread(void)
FIXME("() stub\n");
}
+/***********************************************************************
+ * KeRevertToUserAffinityThreadEx (NTOSKRNL.EXE.@)
+ */
+void WINAPI KeRevertToUserAffinityThreadEx(KAFFINITY affinity)
+{
+ FIXME("(%lx) stub\n", affinity);
+}
/***********************************************************************
* IoRegisterFileSystem (NTOSKRNL.EXE.@)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index a1e5e28203f5..e0fda1848354 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -618,6 +618,7 @@
@ stdcall KeResetEvent(ptr)
@ stub KeRestoreFloatingPointState
@ stdcall KeRevertToUserAffinityThread()
+@ stdcall KeRevertToUserAffinityThreadEx(long)
@ stub KeRundownQueue
@ stub KeSaveFloatingPointState
@ stub KeSaveStateForHibernate
--
2.26.2

View File

@ -0,0 +1 @@
Fixes: [49222] ntoskrnl.exe: Add KeRevertToUserAffinityThreadEx stub

View File

@ -213,6 +213,7 @@ patch_enable_all ()
enable_ntdll_x86_64_SegDs="$1"
enable_ntoskrnl_Stubs="$1"
enable_ntoskrnl_exe_KdRefreshDebuggerNotPresent="$1"
enable_ntoskrnl_exe_KeRevertToUserAffinityThreadEx="$1"
enable_ntoskrnl_exe_KeSetSystemAffinityThreadEx="$1"
enable_nvapi_Stub_DLL="$1"
enable_nvcuda_CUDA_Support="$1"
@ -743,6 +744,9 @@ patch_enable ()
ntoskrnl.exe-KdRefreshDebuggerNotPresent)
enable_ntoskrnl_exe_KdRefreshDebuggerNotPresent="$2"
;;
ntoskrnl.exe-KeRevertToUserAffinityThreadEx)
enable_ntoskrnl_exe_KeRevertToUserAffinityThreadEx="$2"
;;
ntoskrnl.exe-KeSetSystemAffinityThreadEx)
enable_ntoskrnl_exe_KeSetSystemAffinityThreadEx="$2"
;;
@ -4955,6 +4959,21 @@ if test "$enable_ntoskrnl_exe_KdRefreshDebuggerNotPresent" -eq 1; then
) >> "$patchlist"
fi
# Patchset ntoskrnl.exe-KeRevertToUserAffinityThreadEx
# |
# | This patchset fixes the following Wine bugs:
# | * [#49222] ntoskrnl.exe: Add KeRevertToUserAffinityThreadEx stub
# |
# | Modified files:
# | * dlls/ntoskrnl.exe/ntoskrnl.c, dlls/ntoskrnl.exe/ntoskrnl.exe.spec
# |
if test "$enable_ntoskrnl_exe_KeRevertToUserAffinityThreadEx" -eq 1; then
patch_apply ntoskrnl.exe-KeRevertToUserAffinityThreadEx/0001-ntoskrnl.exe-Add-KeRevertToUserAffinityThreadEx-stub.patch
(
printf '%s\n' '+ { "Alistair Leslie-Hughes", "ntoskrnl.exe: Add KeRevertToUserAffinityThreadEx stub.", 1 },';
) >> "$patchlist"
fi
# Patchset ntoskrnl.exe-KeSetSystemAffinityThreadEx
# |
# | This patchset fixes the following Wine bugs: