msvcrt: Disable sse2 math functions in older versions of runtime.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-02-05 16:06:50 +01:00 committed by Alexandre Julliard
parent 0cd71776f4
commit 4ae82fd007
1 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,12 @@ static const struct unix_funcs *unix_funcs;
void msvcrt_init_math( void *module )
{
sse2_supported = sse2_enabled = IsProcessorFeaturePresent( PF_XMMI64_INSTRUCTIONS_AVAILABLE );
sse2_supported = IsProcessorFeaturePresent( PF_XMMI64_INSTRUCTIONS_AVAILABLE );
#if _MSVCR_VER <=71
sse2_enabled = FALSE;
#else
sse2_enabled = sse2_supported;
#endif
__wine_init_unix_lib( module, DLL_PROCESS_ATTACH, NULL, &unix_funcs );
}