From 7b28e0ede49ca78e05df6bc6af2d2d8c508f8455 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Feb 2004 19:25:05 +0000 Subject: [PATCH] don't give error messages if ws2_32.dll is not available in wxGetHostName() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() ) { -- 2.45.2