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

Alexandre Julliard julliard at winehq.org
Thu Dec 23 16:01:33 CST 2021


Module: wine
Branch: master
Commit: 7555573dc547c7204e0454dde02b31ca8a7a1e90
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7555573dc547c7204e0454dde02b31ca8a7a1e90

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Dec 23 19:35:10 2021 +0100

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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list