Add patch for KeSetSystemAffinityThread stub.

This commit is contained in:
Michael Müller
2014-11-05 05:14:07 +01:00
parent 1c01fe44d7
commit fdd2f4a7f3
5 changed files with 58 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ PATCHLIST := \
ntdll-Pipe_SpecialCharacters.ok \
ntdll-WRITECOPY.ok \
ntoskrnl-Irp_Status.ok \
ntoskrnl-KeSetSystemAffinityThread.ok \
ntoskrnl-Write_CR4.ok \
ole32-CoWaitForMultipleHandles.ok \
quartz-MediaSeeking_Positions.ok \
@@ -1002,6 +1003,24 @@ ntoskrnl-Irp_Status.ok:
echo '+ { "ntoskrnl-Irp_Status", "Sebastian Lackner", "Handle issues when driver returns two different status codes from dispatcher." },'; \
) > ntoskrnl-Irp_Status.ok
# Patchset ntoskrnl-KeSetSystemAffinityThread
# |
# | Included patches:
# | * Add stub for KeSetSystemAffinityThread. [by Michael Müller]
# |
# | This patchset fixes the following Wine bugs:
# | * [#36822] FairplayKD.sys needs KeSetSystemAffinityThread
# |
# | Modified files:
# | * dlls/ntoskrnl.exe/ntoskrnl.c
# |
.INTERMEDIATE: ntoskrnl-KeSetSystemAffinityThread.ok
ntoskrnl-KeSetSystemAffinityThread.ok:
$(call APPLY_FILE,ntoskrnl-KeSetSystemAffinityThread/0001-ntoskrnl-Add-stub-for-KeSetSystemAffinityThread.patch)
@( \
echo '+ { "ntoskrnl-KeSetSystemAffinityThread", "Michael Müller", "Add stub for KeSetSystemAffinityThread." },'; \
) > ntoskrnl-KeSetSystemAffinityThread.ok
# Patchset ntoskrnl-Write_CR4
# |
# | Included patches:

View File

@@ -0,0 +1,32 @@
From 94fa0ba88100e99d7c3b90b7b17d225e5e519fea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Wed, 5 Nov 2014 05:06:06 +0100
Subject: ntoskrnl: Add stub for KeSetSystemAffinityThread.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index a31b186..8d3e3c6 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1404,6 +1404,15 @@ KPRIORITY WINAPI KeSetPriorityThread( PKTHREAD Thread, KPRIORITY Priority )
/***********************************************************************
+ * KeSetSystemAffinityThread (NTOSKRNL.EXE.@)
+ */
+VOID WINAPI KeSetSystemAffinityThread( KAFFINITY affinity )
+{
+ FIXME("(%lx)\n", affinity);
+}
+
+
+/***********************************************************************
* KeWaitForSingleObject (NTOSKRNL.EXE.@)
*/
NTSTATUS WINAPI KeWaitForSingleObject(PVOID Object,
--
1.9.1

View File

@@ -0,0 +1,4 @@
Author: Michael Müller
Subject: Add stub for KeSetSystemAffinityThread.
Revision: 1
Fixes: [36822] FairplayKD.sys needs KeSetSystemAffinityThread