Alexandre Julliard : ntdll: Store the syscall dispatcher also in the WOW32Reserved TEB field.
Alexandre Julliard
julliard at winehq.org
Thu Nov 26 16:30:59 CST 2020
Module: wine
Branch: master
Commit: baec5f1eca35450e13f24b65605c9783e5dca1d2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=baec5f1eca35450e13f24b65605c9783e5dca1d2
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Nov 26 13:33:52 2020 +0100
ntdll: Store the syscall dispatcher also in the WOW32Reserved TEB field.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list