Module: wine Branch: master Commit: e617fe0bdac2ea520c6fa4411e56037f2660814f URL: https://source.winehq.org/git/wine.git/?a=commit;h=e617fe0bdac2ea520c6fa4411...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Jan 31 21:36:26 2022 +0100
msvcrt: Don't set SSE control word in _except1.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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 d03b4def801..b12ba3e9585 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -10365,7 +10365,7 @@ double CDECL _except1(DWORD fpe, _FP_OPERATION_CODE op, double arg, double res, case 0x300: fpword |= _PC_64; break; } if (cw & 0x1000) fpword |= _IC_AFFINE; - _control87(fpword, 0xffffffff); + _setfp(&fpword, _MCW_EM | _MCW_RC | _MCW_PC | _MCW_IC, NULL, 0);
return res; }