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:
parent
5e418a9072
commit
03468a4f05
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue