Commit 93a3a6c0 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Allow unwind rules to override the default stack pointer assignment.

parent 334f54c2
......@@ -980,6 +980,12 @@ static void apply_frame_state( CONTEXT *context, struct frame_state *state,
}
if (!cfa) return;
#ifdef __x86_64__
new_context.Rsp = cfa;
#elif defined(__aarch64__)
new_context.Sp = cfa;
#endif
for (i = 0; i < NB_FRAME_REGS; i++)
{
switch (state->rules[i])
......@@ -1004,11 +1010,6 @@ static void apply_frame_state( CONTEXT *context, struct frame_state *state,
break;
}
}
#ifdef __x86_64__
new_context.Rsp = cfa;
#elif defined(__aarch64__)
new_context.Sp = cfa;
#endif
*context = new_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