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.
This commit is contained in:
Henri Verbeet 2009-01-04 20:38:58 +01:00 committed by Alexandre Julliard
parent 5e418a9072
commit 03468a4f05
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
{