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: Martin Storsjo <martin@martin.st> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
64c7d59ee9
commit
99a6ae5b86
|
@ -57,8 +57,8 @@ struct MSVCRT_JUMP_BUFFER
|
||||||
unsigned __int64 Fp;
|
unsigned __int64 Fp;
|
||||||
unsigned __int64 Lr;
|
unsigned __int64 Lr;
|
||||||
unsigned __int64 Sp;
|
unsigned __int64 Sp;
|
||||||
unsigned long Fpcr;
|
ULONG Fpcr;
|
||||||
unsigned long Fpsr;
|
ULONG Fpsr;
|
||||||
double D[8];
|
double D[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1002,7 +1002,7 @@ void CDECL RtlRestoreContext( CONTEXT *context, EXCEPTION_RECORD *rec )
|
||||||
context->Fpsr = jmp->Fpsr;
|
context->Fpsr = jmp->Fpsr;
|
||||||
|
|
||||||
for (i = 0; i < 8; i++)
|
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)
|
else if (rec && rec->ExceptionCode == STATUS_UNWIND_CONSOLIDATE && rec->NumberParameters >= 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue