ntdll: Fix ExceptionAddress for FPU exceptions.
ExceptionAddress isn't the same as EIP for FPU exceptions, since the exception will be thrown on the next FPU instruction, rather than the instruction that caused the exception.
This commit is contained in:
parent
f4d7369ba3
commit
5e418a9072
|
@ -1452,6 +1452,7 @@ static void fpe_handler( int signal, siginfo_t *siginfo, void *sigcontext )
|
|||
case TRAP_x86_ARITHTRAP: /* Floating point exception */
|
||||
case TRAP_x86_UNKNOWN: /* Unknown fault code */
|
||||
rec->ExceptionCode = get_fpu_code( win_context );
|
||||
rec->ExceptionAddress = (LPVOID)win_context->FloatSave.ErrorOffset;
|
||||
break;
|
||||
case TRAP_x86_CACHEFLT: /* SIMD exception */
|
||||
/* TODO:
|
||||
|
|
Loading…
Reference in New Issue