Added missing wxGetFullHostName() and wxNO_DEFAULT for generic msgdialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -901,3 +901,18 @@ wxString wxGetHostName()
|
||||
return buf;
|
||||
}
|
||||
|
||||
wxString wxGetFullHostName()
|
||||
{
|
||||
static const size_t hostnameSize = 257;
|
||||
|
||||
wxString buf;
|
||||
bool ok = wxGetFullHostName(buf.GetWriteBuf(hostnameSize), hostnameSize);
|
||||
|
||||
buf.UngetWriteBuf();
|
||||
|
||||
if ( !ok )
|
||||
buf.Empty();
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user