From 7555573dc547c7204e0454dde02b31ca8a7a1e90 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 23 Dec 2021 19:35:10 +0100 Subject: [PATCH] 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 Signed-off-by: Alexandre Julliard --- dlls/msvcrt/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 414c948d025..14afad5fb45 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -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;