summaryrefslogtreecommitdiffstats
path: root/src/qt3support/network/q3dns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt3support/network/q3dns.cpp')
-rw-r--r--src/qt3support/network/q3dns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt3support/network/q3dns.cpp b/src/qt3support/network/q3dns.cpp
index ab042c4..e0e9909 100644
--- a/src/qt3support/network/q3dns.cpp
+++ b/src/qt3support/network/q3dns.cpp
@@ -41,6 +41,7 @@
#include "qplatformdefs.h"
#include "qbytearray.h"
+#include <private/qsystemlibrary_p.h>
#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE) || defined(Q_OS_CYGWIN)
# include "qt_windows.h"
#else
@@ -2299,7 +2300,7 @@ void Q3Dns::doResInit()
bool gotNetworkParams = false;
// try the API call GetNetworkParams() first and use registry lookup only
// as a fallback
- HINSTANCE hinstLib = LoadLibrary( L"iphlpapi" );
+ HINSTANCE hinstLib = QSystemLibrary::load( L"iphlpapi" );
if ( hinstLib != 0 ) {
#ifdef Q_OS_WINCE
GNP getNetworkParams = (GNP) GetProcAddress( hinstLib, L"GetNetworkParams" );