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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-06-29 10:46:04 +02:00
parent 38c78a9682
commit 716cf7d342
1 changed files with 1 additions and 1 deletions

View File

@ -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 );