From 4f0753dce7402a2f9f51735292f07b6165989d17 Mon Sep 17 00:00:00 2001 From: John Chen Date: Thu, 15 Dec 2016 08:47:23 -0800 Subject: Remove API Set dependency (#8624) --- src/vm/codeman.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/vm/codeman.cpp') diff --git a/src/vm/codeman.cpp b/src/vm/codeman.cpp index a73cb53fd1..98f0e53d3d 100644 --- a/src/vm/codeman.cpp +++ b/src/vm/codeman.cpp @@ -1226,16 +1226,9 @@ bool DoesOSSupportAVX() typedef DWORD64 (WINAPI *PGETENABLEDXSTATEFEATURES)(); PGETENABLEDXSTATEFEATURES pfnGetEnabledXStateFeatures = NULL; - // Probe ApiSet first - HMODULE hMod = WszLoadLibraryEx(W("api-ms-win-core-xstate-l2-1-0.dll"), NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); - - if (hMod == NULL) - { - // On older OS's where apiset is not present probe kernel32 - hMod = WszLoadLibraryEx(WINDOWS_KERNEL32_DLLNAME_W, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); - if(hMod = NULL) - return FALSE; - } + HMODULE hMod = WszLoadLibraryEx(WINDOWS_KERNEL32_DLLNAME_W, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); + if(hMod = NULL) + return FALSE; pfnGetEnabledXStateFeatures = (PGETENABLEDXSTATEFEATURES)GetProcAddress(hMod, "GetEnabledXStateFeatures"); -- cgit v1.2.3