From: Stefan Neis Date: Sun, 7 Jan 2007 14:07:02 +0000 (+0000) Subject: Extended wxGetHostName implementation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4f6eaf5ee2335e43d6f03c99b0b3cfd53c9b6edb Extended wxGetHostName implementation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index c32be9c6e6..cc0812db27 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -83,7 +83,8 @@ bool wxGetHostName( wxChar* zBuf, int nMaxSize ) wxChar* zSysname; const wxChar* zDefaultHost = _T("noname"); - if ((zSysname = wxGetenv(_T("SYSTEM_NAME"))) == NULL) + if ((zSysname = wxGetenv(_T("SYSTEM_NAME"))) == NULL && + (zSysname = wxGetenv(_T("HOSTNAME"))) == NULL) { ::PrfQueryProfileString( HINI_PROFILE ,(PSZ)WX_SECTION