X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2dc357ea288152090ea36019a0279cdf9c4f6ef1..5c250a10332dc17263c66deb629b5fa8c4320f8a:/src/msw/utils.cpp?ds=inline diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 7da8065ba3..3e3721f596 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -156,7 +156,10 @@ bool wxGetFullHostName(wxChar *buf, int maxSize) // TODO should use GetComputerNameEx() when available // we don't want to always link with Winsock DLL as we might not use it at - // all, so load it dynamically here if needed + // all, so load it dynamically here if needed (and don't complain if it is + // missing, we handle this) + wxLogNull noLog; + wxDynamicLibrary dllWinsock(_T("ws2_32.dll"), wxDL_VERBATIM); if ( dllWinsock.IsLoaded() ) {