Commit 7555573d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix restoring 53-bit precision mode in _control87.

parent 4fd80941
......@@ -5328,7 +5328,7 @@ static void _setfp( unsigned int *cw, unsigned int cw_mask,
*cw = (flags & ~cw_mask) | (*cw & cw_mask);
TRACE("x86 update cw %08x to %08x\n", flags, *cw);
newcw &= ~0x1e3f;
newcw &= ~0x1f3f;
if (*cw & _EM_INVALID) newcw |= 0x1;
if (*cw & _EM_DENORMAL) newcw |= 0x2;
if (*cw & _EM_ZERODIVIDE) newcw |= 0x4;
......
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