Commit 99a6ae5b authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

ntdll: Fix arm64 jump buffer float restoration.

Fix a typo in copying fields from the jump buffer to the context, use the right type of long in the struct. Signed-off-by: 's avatarMartin Storsjo <martin@martin.st> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 64c7d59e
......@@ -57,8 +57,8 @@ struct MSVCRT_JUMP_BUFFER
unsigned __int64 Fp;
unsigned __int64 Lr;
unsigned __int64 Sp;
unsigned long Fpcr;
unsigned long Fpsr;
ULONG Fpcr;
ULONG Fpsr;
double D[8];
};
......@@ -1002,7 +1002,7 @@ void CDECL RtlRestoreContext( CONTEXT *context, EXCEPTION_RECORD *rec )
context->Fpsr = jmp->Fpsr;
for (i = 0; i < 8; i++)
context->V[8+i].D[0] = jmp->D[0];
context->V[8+i].D[0] = jmp->D[i];
}
else if (rec && rec->ExceptionCode == STATUS_UNWIND_CONSOLIDATE && rec->NumberParameters >= 1)
{
......
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