From fdd2f4a7f37fe275c414b74f2094fe6600c45473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 5 Nov 2014 05:14:07 +0100 Subject: [PATCH] Add patch for KeSetSystemAffinityThread stub. --- README.md | 3 +- debian/changelog | 1 + patches/Makefile | 19 +++++++++++ ...d-stub-for-KeSetSystemAffinityThread.patch | 32 +++++++++++++++++++ .../definition | 4 +++ 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 patches/ntoskrnl-KeSetSystemAffinityThread/0001-ntoskrnl-Add-stub-for-KeSetSystemAffinityThread.patch create mode 100644 patches/ntoskrnl-KeSetSystemAffinityThread/definition diff --git a/README.md b/README.md index a6fbe525..fff450d6 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,12 @@ Wine. All those differences are also documented on the Included bug fixes and improvements =================================== -**Bugfixes and features included in the next upcoming release [3]:** +**Bugfixes and features included in the next upcoming release [4]:** * Add stub for NtSetLdtEntries/ZwSetLdtEntries ([Wine Bug #26268](https://bugs.winehq.org/show_bug.cgi?id=26268)) * Allow selection of audio device for PulseAudio backend * CoWaitForMultipleHandles shouldn't process window events when APC calls are queued ([Wine Bug #32568](https://bugs.winehq.org/show_bug.cgi?id=32568)) +* FairplayKD.sys needs KeSetSystemAffinityThread ([Wine Bug #36822](https://bugs.winehq.org/show_bug.cgi?id=36822)) **Bugs fixed in Wine Staging 1.7.30 [90]:** diff --git a/debian/changelog b/debian/changelog index 6aa31889..f3bf9273 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ wine-compholio (1.7.31) UNRELEASED; urgency=low * Removed patches for TLB dependencies lookup in resources (accepted upstream). * Removed patches for ws2_32.inet_pton implementation (fixed upstream). * Removed patch to update properties when applying MSI transforms (fixed upstream). + * Add patch with stub for KeSetSystemAffinityThread -- Sebastian Lackner Mon, 03 Nov 2014 20:10:04 +0100 wine-compholio (1.7.30) unstable; urgency=low diff --git a/patches/Makefile b/patches/Makefile index 388baf4b..0158e49f 100644 --- a/patches/Makefile +++ b/patches/Makefile @@ -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: diff --git a/patches/ntoskrnl-KeSetSystemAffinityThread/0001-ntoskrnl-Add-stub-for-KeSetSystemAffinityThread.patch b/patches/ntoskrnl-KeSetSystemAffinityThread/0001-ntoskrnl-Add-stub-for-KeSetSystemAffinityThread.patch new file mode 100644 index 00000000..929ff3fe --- /dev/null +++ b/patches/ntoskrnl-KeSetSystemAffinityThread/0001-ntoskrnl-Add-stub-for-KeSetSystemAffinityThread.patch @@ -0,0 +1,32 @@ +From 94fa0ba88100e99d7c3b90b7b17d225e5e519fea Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +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 + diff --git a/patches/ntoskrnl-KeSetSystemAffinityThread/definition b/patches/ntoskrnl-KeSetSystemAffinityThread/definition new file mode 100644 index 00000000..8da8b4ff --- /dev/null +++ b/patches/ntoskrnl-KeSetSystemAffinityThread/definition @@ -0,0 +1,4 @@ +Author: Michael Müller +Subject: Add stub for KeSetSystemAffinityThread. +Revision: 1 +Fixes: [36822] FairplayKD.sys needs KeSetSystemAffinityThread