From d2933e66c696e08e8caaff69591b10577617d6da Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Fri, 20 Apr 2012 21:56:08 +0200 Subject: [PATCH] Fix SSE3 detection. CheckCPU() would always return true, letting the game continue and crash on an SSE3 instruction on non-SSE3 CPUs. --- Sources/Plasma/Apps/plClient/winmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index e1acd0db..91c05798 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1396,7 +1396,7 @@ bool CheckCPU() int cpu_info[4]; __cpuid(cpu_info, 1); #ifdef HAVE_SSE - if(cpu_info[2] & sse3_flag == 0) + if((cpu_info[2] & sse3_flag) == 0) return false; #endif // Insert additional feature checks here