Commit 5e418a90 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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.
parent f4d7369b
......@@ -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:
......
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