applied patch 446014 (misc mingw fixes from Mattia)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-02 19:02:17 +00:00
parent 4acb6ca672
commit bf9b6266fa
8 changed files with 31 additions and 13 deletions

View File

@@ -864,9 +864,17 @@ bool wxDialUpManagerMSW::Dial(const wxString& nameOfISP,
if ( dwRet != 0 )
{
#if wxUSE_UNICODE
// can't pass a wxWCharBuffer through ( ... )
wxLogError(_("Failed to %s dialup connection: %s").data(),
async ? _("initiate").data() : _("establish").data(),
GetErrorString(dwRet).c_str());
#else
// can't pass a wxWCharBuffer through ( ... )
wxLogError(_("Failed to %s dialup connection: %s"),
wxString(async ? _("initiate") : _("establish")).c_str(),
GetErrorString(dwRet).c_str());
#endif
// we should still call RasHangUp() if we got a non 0 connection
if ( ms_hRasConnection )