diff --git a/patches/include-LdrData/0001-include-winternl.h-Add-Vista-PEB_LDR_DATA-structure-.patch b/patches/include-LdrData/0001-include-winternl.h-Add-Vista-PEB_LDR_DATA-structure-.patch new file mode 100644 index 00000000..16db257c --- /dev/null +++ b/patches/include-LdrData/0001-include-winternl.h-Add-Vista-PEB_LDR_DATA-structure-.patch @@ -0,0 +1,25 @@ +From 4a62c326b24ecb2f7c19b2fbc25ff1d20e362db7 Mon Sep 17 00:00:00 2001 +From: Paul Gofman +Date: Wed, 18 Dec 2019 02:54:18 +0300 +Subject: [PATCH] include/winternl.h: Add Vista+ PEB_LDR_DATA structure fields. + +--- + include/winternl.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/winternl.h b/include/winternl.h +index 9e7e2bad93..33b1260323 100644 +--- a/include/winternl.h ++++ b/include/winternl.h +@@ -213,6 +213,8 @@ typedef struct _PEB_LDR_DATA + LIST_ENTRY InMemoryOrderModuleList; + LIST_ENTRY InInitializationOrderModuleList; + PVOID EntryInProgress; ++ BOOLEAN ShutdownInProgress; ++ HANDLE ShutdownThreadId; + } PEB_LDR_DATA, *PPEB_LDR_DATA; + + typedef struct _GDI_TEB_BATCH +-- +2.23.0 + diff --git a/patches/include-LdrData/definition b/patches/include-LdrData/definition new file mode 100644 index 00000000..265cf2d0 --- /dev/null +++ b/patches/include-LdrData/definition @@ -0,0 +1,2 @@ +Fixes: [48289] Grand Theft Auto 5 crashes after loading. + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index bd6813ea..a129643d 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -152,6 +152,7 @@ patch_enable_all () enable_gdiplus_Performance_Improvements="$1" enable_imagehlp_BindImageEx="$1" enable_imm32_message_on_focus="$1" + enable_include_LdrData="$1" enable_include_winsock="$1" enable_inseng_Implementation="$1" enable_iphlpapi_System_Ping="$1" @@ -583,6 +584,9 @@ patch_enable () imm32-message_on_focus) enable_imm32_message_on_focus="$2" ;; + include-LdrData) + enable_include_LdrData="$2" + ;; include-winsock) enable_include_winsock="$2" ;; @@ -4120,6 +4124,21 @@ if test "$enable_imm32_message_on_focus" -eq 1; then ) >> "$patchlist" fi +# Patchset include-LdrData +# | +# | This patchset fixes the following Wine bugs: +# | * [#48289] Grand Theft Auto 5 crashes after loading. +# | +# | Modified files: +# | * include/winternl.h +# | +if test "$enable_include_LdrData" -eq 1; then + patch_apply include-LdrData/0001-include-winternl.h-Add-Vista-PEB_LDR_DATA-structure-.patch + ( + printf '%s\n' '+ { "Paul Gofman", "include/winternl.h: Add Vista+ PEB_LDR_DATA structure fields.", 1 },'; + ) >> "$patchlist" +fi + # Patchset include-winsock # | # | Modified files: