Commit 716cf7d3 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 38c78a96
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment