Commit 7b7a2af5 authored by Martin Storsjö's avatar Martin Storsjö Committed by Alexandre Julliard

ntdll: Don't blindly increment Sp by 8 in leaf functions on arm64.

This doesn't fix (or break) any case known to me, but the code seems wrong. Leaf functions on arm (either 32 or 64) don't generally have any default/implicit stack allocation. Signed-off-by: 's avatarMartin Storsjö <martin@martin.st> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4463ccb2
......@@ -224,7 +224,6 @@ NTSTATUS CDECL unwind_builtin_dll( ULONG type, DISPATCHER_CONTEXT *dispatch, CON
dispatch->LanguageHandler = NULL;
dispatch->EstablisherFrame = context->Sp;
context->Pc = context->u.s.Lr;
context->Sp = context->Sp + sizeof(ULONG64);
context->ContextFlags |= CONTEXT_UNWOUND_TO_CALL;
return STATUS_SUCCESS;
}
......
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