msvcrt: Don't set _EM_AMBIGOUS flag in _control87 when sse2 is not supported.

Fixes compilation warning.

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-21 12:54:58 +01:00 committed by Alexandre Julliard
parent 929face084
commit 564ede5d32
1 changed files with 5 additions and 2 deletions

View File

@ -5677,8 +5677,11 @@ unsigned int CDECL _control87(unsigned int newval, unsigned int mask)
__control87_2( newval, mask, &flags, &sse2_cw );
if (sse2_supported)
{
if ((flags ^ sse2_cw) & (_MCW_EM | _MCW_RC)) flags |= _EM_AMBIGUOUS;
flags |= sse2_cw;
}
#else
flags = newval;
_setfp(&flags, mask, NULL, 0);