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: Martin Storsjö <martin@martin.st> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4463ccb267
commit
7b7a2af5ee
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue