X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8eaaeb23796c69ea0f67cbd48fc5f667d9823d0..e55c4dd1b1c6b4ebaa86d014c71b378baba77bec:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 3a3f03a76c..e3de12da51 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -144,7 +144,7 @@ bool wxGetHostName(wxChar *buf, int maxSize) // get full hostname (with domain name if possible) bool wxGetFullHostName(wxChar *buf, int maxSize) { -#ifndef __WXMICROWIN__ +#if !defined( __WXMICROWIN__) && wxUSE_DYNAMIC_LOADER // TODO should use GetComputerNameEx() when available // we don't want to always link with Winsock DLL as we might not use it at @@ -1012,7 +1012,7 @@ wxString wxGetOsDescription() #endif // Win32/16 } -wxToolkitInfo *wxAppTraits::GetToolkitInfo() +wxToolkitInfo& wxAppTraits::GetToolkitInfo() { // cache the version info, it's not going to change // @@ -1061,7 +1061,7 @@ wxToolkitInfo *wxAppTraits::GetToolkitInfo() info.versionMinor = s_minor; info.os = s_ver; info.name = _T("wxBase"); - return &info; + return info; } // ----------------------------------------------------------------------------