Module: wine Branch: master Commit: 716cf7d342466235d3117db5da788704cbf2853d URL: https://source.winehq.org/git/wine.git/?a=commit;h=716cf7d342466235d3117db5d...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 29 10:46:04 2020 +0200
ntdll: Avoid a compiler warning when fetching the return address.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/signal_i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index d91d19f043..ac722bef55 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 );