From: Thad House Date: Wed, 12 Dec 2018 01:06:01 +0000 (-0800) Subject: Remove MinCore_Downlevel, replace with Shlwapi X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~376^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=857fba0878f91388637f849839bd420fe87234ef;p=platform%2Fupstream%2Fopencv.git Remove MinCore_Downlevel, replace with Shlwapi On windows 7, MinCore_Downlevel does not work correctly. However, the only API used was QISearch, which can be found in Shlwapi. Closes #12010 --- diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index 9fa84a1..3eca95b 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/src/cap_msmf.cpp @@ -99,9 +99,7 @@ static void init_MFCreateDXGIDeviceManager() pMFCreateDXGIDeviceManager_initialized = true; } #endif -#if (WINVER >= 0x0602) // Available since Win 8 -#pragma comment(lib, "MinCore_Downlevel") -#endif +#pragma comment(lib, "Shlwapi.lib") #endif #include