diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index d91d19f043a..ac722bef559 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -360,7 +360,7 @@ NTSTATUS CDECL DECLSPEC_HIDDEN __regs_NtGetContextThread( DWORD edi, DWORD esi, { context->Ebp = ebp; context->Esp = (DWORD)&retaddr; - context->Eip = *(&edi - 1); + context->Eip = (DWORD)NtGetContextThread + 12; context->EFlags = eflags; } return unix_funcs->NtGetContextThread( handle, context );