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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52260
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-12-23 19:35:10 +01:00 committed by Alexandre Julliard
parent 4fd80941f8
commit 7555573dc5
1 changed files with 1 additions and 1 deletions

View File

@ -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;