diff options
author | Manuel Reimer | 2021-08-27 18:21:39 +0200 |
---|---|---|
committer | Manuel Reimer | 2021-08-27 18:21:39 +0200 |
commit | a56304440e03ff18d32f62ad264f748c787062ab (patch) | |
tree | 051dcc4cfa3766543ddd3330ead63eb4d1b75fb9 /0001-Updated-wow64cpu-Wow64Transition-patchset.patch | |
parent | 798eee35b781323b59c81144c413e0b4f3b54ca4 (diff) | |
download | aur-a56304440e03ff18d32f62ad264f748c787062ab.tar.gz |
Update to Wine 5.18
This version uses wine-tkg as base in version 5.18 as this is known to work.
Special thanks to @Tk-Glitch whose wine build is the base of this release and @yuiiio who initially made wine-tkg 5.18 work for LoL
Diffstat (limited to '0001-Updated-wow64cpu-Wow64Transition-patchset.patch')
-rw-r--r-- | 0001-Updated-wow64cpu-Wow64Transition-patchset.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/0001-Updated-wow64cpu-Wow64Transition-patchset.patch b/0001-Updated-wow64cpu-Wow64Transition-patchset.patch new file mode 100644 index 000000000000..8a53040fff95 --- /dev/null +++ b/0001-Updated-wow64cpu-Wow64Transition-patchset.patch @@ -0,0 +1,63 @@ +From b5bce7dcc0fc4656e704c29d6df10f50324edba4 Mon Sep 17 00:00:00 2001 +From: yuiiio <atbjyk@protonmail.com> +Date: Thu, 17 Sep 2020 11:27:40 +0900 +Subject: [PATCH 1/3] Updated wow64cpu-Wow64Transition patchset + +--- + dlls/ntdll/loader.c | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c +index a1a52a59978..98c74661629 100644 +--- a/dlls/ntdll/loader.c ++++ b/dlls/ntdll/loader.c +@@ -790,7 +790,7 @@ static FARPROC find_ordinal_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY + proc = get_rva( module, functions[ordinal] ); + + /* if the address falls into the export dir, it's a forward */ +- if (((const char *)proc >= (const char *)exports) && ++ if (((const char *)proc >= (const char *)exports) && + ((const char *)proc < (const char *)exports + exp_size)) + return find_forwarded_export( module, (const char *)proc, load_path ); + +@@ -1709,7 +1709,7 @@ static void process_detach(void) + + /* Call detach notification */ + mod->Flags &= ~LDR_PROCESS_ATTACHED; +- MODULE_InitDLL( CONTAINING_RECORD(mod, WINE_MODREF, ldr), ++ MODULE_InitDLL( CONTAINING_RECORD(mod, WINE_MODREF, ldr), + DLL_PROCESS_DETACH, ULongToPtr(process_detaching) ); + call_ldr_notifications( LDR_DLL_NOTIFICATION_REASON_UNLOADED, mod ); + +@@ -3537,7 +3537,7 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count + * LdrQueryProcessModuleInformation + * + */ +-NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi, ++NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi, + ULONG buf_size, ULONG* req_size) + { + SYSTEM_MODULE* sm = &smi->Modules[0]; +@@ -3840,7 +3840,7 @@ void WINAPI LdrShutdownThread(void) + if ( mod->Flags & LDR_NO_DLL_CALLS ) + continue; + +- MODULE_InitDLL( CONTAINING_RECORD(mod, WINE_MODREF, ldr), ++ MODULE_InitDLL( CONTAINING_RECORD(mod, WINE_MODREF, ldr), + DLL_THREAD_DETACH, NULL ); + } + +@@ -4625,7 +4625,9 @@ void __wine_process_init(void) + static const WCHAR ntdllW[] = {'\\','?','?','\\','C',':','\\','w','i','n','d','o','w','s','\\', + 's','y','s','t','e','m','3','2','\\', + 'n','t','d','l','l','.','d','l','l',0}; +- static const WCHAR wow64cpuW[] = {'w','o','w','6','4','c','p','u','.','d','l','l',0}; ++ static const WCHAR wow64cpuW[] = {'\\','?','?','\\','C',':','\\','w','i','n','d','o','w','s','\\', ++ 's','y','s','t','e','m','3','2','\\', ++ 'w','o','w','6','4','c','p','u','.','d','l','l',0}; + static const WCHAR kernel32W[] = {'\\','?','?','\\','C',':','\\','w','i','n','d','o','w','s','\\', + 's','y','s','t','e','m','3','2','\\', + 'k','e','r','n','e','l','3','2','.','d','l','l',0}; +-- +2.28.0 + |