From 1ce08530c34b3760f8efe3f009efdb5cea8f1131 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 9 Jul 2021 21:09:56 +0200 Subject: [PATCH] ntdll: Use the 32-bit RtlUserThreadStart as initial Eip in the 32-bit context. Signed-off-by: Alexandre Julliard --- 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;