Module: wine Branch: master Commit: 254dd0a2b24dbc14c5f6c7a1078eacb287a5906a URL: https://gitlab.winehq.org/wine/wine/-/commit/254dd0a2b24dbc14c5f6c7a1078eacb... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Aug 22 16:17:02 2023 +0200 msvcr70: Don't set SSE2 control register in _control87. Restores old function behavior in msvcr70 and msvcr71. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55414 --- 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 a4d53934c04..a62705bc8f4 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -1195,7 +1195,7 @@ int CDECL __control87_2( unsigned int newval, unsigned int mask, unsigned int CDECL _control87(unsigned int newval, unsigned int mask) { unsigned int flags = 0; -#ifdef __i386__ +#if defined(__i386__) && (_MSVCR_VER == 0 || _MSVCR_VER >= 80) unsigned int sse2_cw; __control87_2( newval, mask, &flags, &sse2_cw );