From 270b403c6d5bc4afb0c668815d52d2e829cedbee Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 6 Apr 2019 21:34:50 -0500 Subject: [PATCH] ntdll-SystemExtendedProcessInformation: Add patch set. --- ...or-NtQuerySystemInformation-SystemEx.patch | 29 +++++++++++++++++++ .../definition | 1 + patches/patchinstall.sh | 20 +++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 patches/ntdll-SystemExtendedProcessInformation/0001-ntdll-Add-stub-for-NtQuerySystemInformation-SystemEx.patch create mode 100644 patches/ntdll-SystemExtendedProcessInformation/definition diff --git a/patches/ntdll-SystemExtendedProcessInformation/0001-ntdll-Add-stub-for-NtQuerySystemInformation-SystemEx.patch b/patches/ntdll-SystemExtendedProcessInformation/0001-ntdll-Add-stub-for-NtQuerySystemInformation-SystemEx.patch new file mode 100644 index 00000000..cdf3324b --- /dev/null +++ b/patches/ntdll-SystemExtendedProcessInformation/0001-ntdll-Add-stub-for-NtQuerySystemInformation-SystemEx.patch @@ -0,0 +1,29 @@ +From 317b8941e2c36fd568799915c8023332b5054331 Mon Sep 17 00:00:00 2001 +From: Zebediah Figura +Date: Sat, 6 Apr 2019 21:31:55 -0500 +Subject: [PATCH] ntdll: Add stub for + NtQuerySystemInformation(SystemExtendedProcessInformation). + +--- + dlls/ntdll/nt.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c +index f42934969..c019a9c29 100644 +--- a/dlls/ntdll/nt.c ++++ b/dlls/ntdll/nt.c +@@ -2768,6 +2768,11 @@ NTSTATUS WINAPI NtQuerySystemInformation( + } + } + break; ++ case SystemExtendedProcessInformation: ++ FIXME("SystemExtendedProcessInformation, len %u, buffer %p, stub!\n", Length, SystemInformation); ++ memset(SystemInformation, 0, Length); ++ ret = STATUS_SUCCESS; ++ break; + default: + FIXME("(0x%08x,%p,0x%08x,%p) stub\n", + SystemInformationClass,SystemInformation,Length,ResultLength); +-- +2.20.1 + diff --git a/patches/ntdll-SystemExtendedProcessInformation/definition b/patches/ntdll-SystemExtendedProcessInformation/definition new file mode 100644 index 00000000..becd1281 --- /dev/null +++ b/patches/ntdll-SystemExtendedProcessInformation/definition @@ -0,0 +1 @@ +Fixes: [46870] League of Legends 8.12+ fails to start a game in Vista+ mode (anticheat engine, SystemExtendedProcessInformation) diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index a03312f2..b73e1906 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -220,6 +220,7 @@ patch_enable_all () enable_ntdll_Stack_Guard_Page="$1" enable_ntdll_Stack_Overflow="$1" enable_ntdll_Status_Mapping="$1" + enable_ntdll_SystemExtendedProcessInformation="$1" enable_ntdll_SystemInterruptInformation="$1" enable_ntdll_SystemModuleInformation="$1" enable_ntdll_SystemRoot_Symlink="$1" @@ -802,6 +803,9 @@ patch_enable () ntdll-Status_Mapping) enable_ntdll_Status_Mapping="$2" ;; + ntdll-SystemExtendedProcessInformation) + enable_ntdll_SystemExtendedProcessInformation="$2" + ;; ntdll-SystemInterruptInformation) enable_ntdll_SystemInterruptInformation="$2" ;; @@ -5176,6 +5180,22 @@ if test "$enable_ntdll_Status_Mapping" -eq 1; then ) >> "$patchlist" fi +# Patchset ntdll-SystemExtendedProcessInformation +# | +# | This patchset fixes the following Wine bugs: +# | * [#46870] League of Legends 8.12+ fails to start a game in Vista+ mode (anticheat engine, +# | SystemExtendedProcessInformation) +# | +# | Modified files: +# | * dlls/ntdll/nt.c +# | +if test "$enable_ntdll_SystemExtendedProcessInformation" -eq 1; then + patch_apply ntdll-SystemExtendedProcessInformation/0001-ntdll-Add-stub-for-NtQuerySystemInformation-SystemEx.patch + ( + printf '%s\n' '+ { "Zebediah Figura", "ntdll: Add stub for NtQuerySystemInformation(SystemExtendedProcessInformation).", 1 },'; + ) >> "$patchlist" +fi + # Patchset ntdll-SystemInterruptInformation # | # | This patchset fixes the following Wine bugs: