diff --git a/patches/ntdll-Dealloc_Thread_Stack/definition b/patches/ntdll-Dealloc_Thread_Stack/definition index 7b04369a..b0f50a6f 100644 --- a/patches/ntdll-Dealloc_Thread_Stack/definition +++ b/patches/ntdll-Dealloc_Thread_Stack/definition @@ -1,2 +1 @@ Fixes: Do not allow to deallocate thread stack for current thread -Disabled: true diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 6359248f..72c8141b 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -196,6 +196,7 @@ patch_enable_all () enable_ntdll_ApiSetQueryApiSetPresence="$1" enable_ntdll_CLI_Images="$1" enable_ntdll_DOS_Attributes="$1" + enable_ntdll_Dealloc_Thread_Stack="$1" enable_ntdll_DeviceType_Systemroot="$1" enable_ntdll_DllOverrides_WOW64="$1" enable_ntdll_DllRedirects="$1" @@ -765,6 +766,9 @@ patch_enable () ntdll-DOS_Attributes) enable_ntdll_DOS_Attributes="$2" ;; + ntdll-Dealloc_Thread_Stack) + enable_ntdll_Dealloc_Thread_Stack="$2" + ;; ntdll-DeviceType_Systemroot) enable_ntdll_DeviceType_Systemroot="$2" ;; @@ -4639,6 +4643,19 @@ if test "$enable_ntdll_DOS_Attributes" -eq 1; then ) >> "$patchlist" fi +# Patchset ntdll-Dealloc_Thread_Stack +# | +# | Modified files: +# | * dlls/ntdll/ntdll_misc.h, dlls/ntdll/signal_arm.c, dlls/ntdll/signal_arm64.c, dlls/ntdll/signal_i386.c, +# | dlls/ntdll/signal_powerpc.c, dlls/ntdll/signal_x86_64.c, dlls/ntdll/virtual.c +# | +if test "$enable_ntdll_Dealloc_Thread_Stack" -eq 1; then + patch_apply ntdll-Dealloc_Thread_Stack/0001-ntdll-Do-not-allow-to-allocate-thread-stack-for-curr.patch + ( + echo '+ { "Sebastian Lackner", "ntdll: Do not allow to deallocate thread stack for current thread.", 1 },'; + ) >> "$patchlist" +fi + # Patchset ntdll-DeviceType_Systemroot # | # | This patchset fixes the following Wine bugs: