diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-23 12:34:42 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-09-23 10:39:08 +0000 |
commit | 9fa5b516f49bb252d6c57d14d54151d8ee3bf9d1 (patch) | |
tree | 6ebaa34c3ceeefcaa0a0f8e525570496e6bb01c7 /src/tools | |
parent | 4111d888f74aff50b2fe22e90e33301a5c8b8323 (diff) |
Remove the usage of deprecated functions
Because of 8a48d66da999d99dac4e9217542c5f954450ddb4 in qtbase, and we
don't support Windows XP any more.
Change-Id: Ic68e9ec1aaeb974959958aab1ae3c3a4814d561f
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/idc/main.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp index 60ec1e4..43d814f 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); |