Alexandre Julliard : ntdll: Initialize TLS links also on the 64-bit side in wow64 mode.
Module: wine Branch: master Commit: b247a33fa1ce570f156c174e920d2e41b92f07a9 URL: https://gitlab.winehq.org/wine/wine/-/commit/b247a33fa1ce570f156c174e920d2e4... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 4 10:39:12 2023 +0200 ntdll: Initialize TLS links also on the 64-bit side in wow64 mode. --- dlls/ntdll/loader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 7eb8e9ee8f1..5a53f4bcb9d 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -4046,6 +4046,10 @@ static void init_wow64( CONTEXT *context ) imports_fixup_done = TRUE; } + RtlAcquirePebLock(); + InsertHeadList( &tls_links, &NtCurrentTeb()->TlsLinks ); + RtlReleasePebLock(); + RtlLeaveCriticalSection( &loader_section ); pWow64LdrpInitialize( context ); }
participants (1)
-
Alexandre Julliard