From ab57a3f3382beadef3741174415894f9deb71bef Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 4 Jan 2009 20:38:58 +0100 Subject: ntdll: Don't throw masked FPU exceptions. When an FPU exception is masked the appropriate flag in the status word will still be set, so get_fpu_code() should mask the exception flags in the status word with the exception flags in the control word. --- dlls/ntdll/signal_i386.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index 08013fb..47788e6 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -1179,7 +1179,7 @@ static inline CONTEXT *get_exception_context( EXCEPTION_RECORD *rec ) */ static inline DWORD get_fpu_code( const CONTEXT *context ) { - DWORD status = context->FloatSave.StatusWord; + DWORD status = context->FloatSave.StatusWord & ~(context->FloatSave.ControlWord & 0x3f); if (status & 0x01) /* IE */ { -- 1.6.0.6