diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp index 60ec1e42d3c81ad583559bfd548935af9b67adcf..43d814faec5e9d4441022e6c0b00801ec53bca42 100644 --- a/src/tools/idc/main.cpp +++ b/src/tools/idc/main.cpp @@ -176,9 +176,6 @@ static bool attachTypeLibrary(const QString &applicationName, int resource, cons static HMODULE loadLibraryQt(const QString &input) { - if (QSysInfo::windowsVersion() < QSysInfo::WV_VISTA) - return LoadLibrary(reinterpret_cast<const wchar_t *>(input.utf16())); // fallback for Windows XP and older - // Load DLL with the folder containing the DLL temporarily added to the search path when loading dependencies return LoadLibraryEx(reinterpret_cast<const wchar_t *>(input.utf16()), NULL, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);