From baec5f1eca35450e13f24b65605c9783e5dca1d2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 26 Nov 2020 13:33:52 +0100 Subject: [PATCH] ntdll: Store the syscall dispatcher also in the WOW32Reserved TEB field. Signed-off-by: Alexandre Julliard --- dlls/ntdll/unix/virtual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index eaaf7242883..785583a340a 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -2542,6 +2542,7 @@ static void init_teb( TEB *teb, PEB *peb ) PtrToUlong( &teb64->ActivationContextStack.FrameListCache ); teb64->StaticUnicodeString.Buffer = PtrToUlong( teb64->StaticUnicodeBuffer ); teb64->StaticUnicodeString.MaximumLength = sizeof( teb64->StaticUnicodeBuffer ); + teb->WOW32Reserved = __wine_syscall_dispatcher; #endif teb->Peb = peb; teb->Tib.Self = &teb->Tib;