X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/521bf4ff3ef47059265beff5d53c9e1162beb122..aa78d22e2008726218d47da1f2ac5864c11b8ebb:/src/os2/utilsexc.cpp?ds=sidebyside diff --git a/src/os2/utilsexc.cpp b/src/os2/utilsexc.cpp index 21b50548e2..909da35a3a 100644 --- a/src/os2/utilsexc.cpp +++ b/src/os2/utilsexc.cpp @@ -238,29 +238,7 @@ long wxExecute( ); } -bool wxGetFullHostName( wxChar* zBuf, - int nMaxSize) +bool wxGetFullHostName( wxChar* zBuf, int nMaxSize) { -#if wxUSE_NET_API - char zServer[256]; - char zComputer[256]; - unsigned long ulLevel = 0; - unsigned char* zBuffer = NULL; - unsigned long ulBuffer = 256; - unsigned long* pulTotalAvail = NULL; - - NetBios32GetInfo( (const unsigned char*)zServer - ,(const unsigned char*)zComputer - ,ulLevel - ,zBuffer - ,ulBuffer - ,pulTotalAvail - ); - strncpy(zBuf, zComputer, nMaxSize); - zBuf[nMaxSize] = _T('\0'); -#else - wxUnusedVar(nMaxSize); - strcpy((char*)zBuf, "noname"); -#endif - return *zBuf ? true : false; + return wxGetHostName( zBuf, nMaxSize ); }