Fix a typo that caused AVX2 flag to be unset
authorJohn Chen (CLR) <jochen@microsoft.com>
Tue, 3 Jan 2017 20:06:03 +0000 (12:06 -0800)
committerJohn Chen (CLR) <jochen@microsoft.com>
Tue, 3 Jan 2017 20:06:03 +0000 (12:06 -0800)
Fix issue #8736, a regression caused by PR #8624. A typo in
the code causes the AVX2 flag to be always unset.

src/vm/codeman.cpp

index 98f0e53..cdb7cc8 100644 (file)
@@ -1227,7 +1227,7 @@ bool DoesOSSupportAVX()
     PGETENABLEDXSTATEFEATURES pfnGetEnabledXStateFeatures = NULL;
     
     HMODULE hMod = WszLoadLibraryEx(WINDOWS_KERNEL32_DLLNAME_W, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
-    if(hMod = NULL)
+    if(hMod == NULL)
         return FALSE;
         
     pfnGetEnabledXStateFeatures = (PGETENABLEDXSTATEFEATURES)GetProcAddress(hMod, "GetEnabledXStateFeatures");