]> git.saurik.com Git - wxWidgets.git/commitdiff
Extended wxGetHostName implementation.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 7 Jan 2007 14:07:02 +0000 (14:07 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 7 Jan 2007 14:07:02 +0000 (14:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/utils.cpp

index c32be9c6e697d12bba4b8ba711e1fbdcf7c4f450..cc0812db2776897d297bd30b2b6ce2c5af283a55 100644 (file)
@@ -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