Alexandre Julliard : ntdll: Avoid a compiler warning when fetching the return address.

Alexandre Julliard julliard at winehq.org
Mon Jun 29 14:59:20 CDT 2020


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

Author: Alexandre Julliard <julliard at 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 at 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 );




More information about the wine-cvs mailing list