Alexandre Julliard : ntdll: Use the 32-bit RtlUserThreadStart as initial Eip in the 32-bit context.

Alexandre Julliard julliard at winehq.org
Fri Jul 9 16:45:33 CDT 2021


Module: wine
Branch: master
Commit: 1ce08530c34b3760f8efe3f009efdb5cea8f1131
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1ce08530c34b3760f8efe3f009efdb5cea8f1131

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jul  9 21:09:56 2021 +0200

ntdll: Use the 32-bit RtlUserThreadStart as initial Eip in the 32-bit context.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/signal_x86_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c
index 4deeec37abb..6b668508d80 100644
--- a/dlls/ntdll/unix/signal_x86_64.c
+++ b/dlls/ntdll/unix/signal_x86_64.c
@@ -2930,7 +2930,7 @@ void DECLSPEC_HIDDEN call_init_thunk( LPTHREAD_START_ROUTINE entry, void *arg, B
         wow_context->Eax = (ULONG_PTR)entry;
         wow_context->Ebx = (ULONG_PTR)arg;
         wow_context->Esp = get_wow_teb( teb )->Tib.StackBase - 16;
-        wow_context->Eip = (ULONG_PTR)pRtlUserThreadStart;
+        wow_context->Eip = pLdrSystemDllInitBlock->pRtlUserThreadStart;
         wow_context->SegCs = cs32_sel;
         wow_context->SegDs = context.SegDs;
         wow_context->SegEs = context.SegEs;




More information about the wine-cvs mailing list