X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce20b5d72190e3f2544891b325dcf66ff1946386..94e2ed3b8db0220160c0b939782cd46914ec073a:/src/msw/dialup.cpp?ds=inline diff --git a/src/msw/dialup.cpp b/src/msw/dialup.cpp index 8e01b68a87..e7a00a506b 100644 --- a/src/msw/dialup.cpp +++ b/src/msw/dialup.cpp @@ -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"), - async ? _("initiate") : _("establish"), + 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 )