]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utils.cpp
removed stray return from SetFont()
[wxWidgets.git] / 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