added missing .c_str() here and there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dbf2885911
commit
5b09e9c2c3
@ -516,7 +516,7 @@ HRASCONN wxDialUpManagerMSW::FindActiveConnection()
|
|||||||
{
|
{
|
||||||
// an error occured
|
// an error occured
|
||||||
wxLogError(_("Cannot find active dialup connection: %s"),
|
wxLogError(_("Cannot find active dialup connection: %s"),
|
||||||
GetErrorString(dwRet));
|
GetErrorString(dwRet).c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -637,7 +637,7 @@ void wxDialUpManagerMSW::OnDialProgress(RASCONNSTATE rasconnstate,
|
|||||||
if ( dwError )
|
if ( dwError )
|
||||||
{
|
{
|
||||||
wxLogError(_("Failed to establish dialup connection: %s"),
|
wxLogError(_("Failed to establish dialup connection: %s"),
|
||||||
GetErrorString(dwError));
|
GetErrorString(dwError).c_str());
|
||||||
|
|
||||||
// we should still call RasHangUp() if we got a non 0 connection
|
// we should still call RasHangUp() if we got a non 0 connection
|
||||||
if ( ms_hRasConnection )
|
if ( ms_hRasConnection )
|
||||||
@ -696,7 +696,8 @@ size_t wxDialUpManagerMSW::GetISPNames(wxArrayString& names) const
|
|||||||
else if ( dwRet != 0 )
|
else if ( dwRet != 0 )
|
||||||
{
|
{
|
||||||
// some other error - abort
|
// some other error - abort
|
||||||
wxLogError(_("Failed to get ISP names: %s"), GetErrorString(dwRet));
|
wxLogError(_("Failed to get ISP names: %s"),
|
||||||
|
GetErrorString(dwRet).c_str());
|
||||||
|
|
||||||
free(rasEntries);
|
free(rasEntries);
|
||||||
|
|
||||||
@ -858,7 +859,7 @@ bool wxDialUpManagerMSW::Dial(const wxString& nameOfISP,
|
|||||||
{
|
{
|
||||||
wxLogError(_("Failed to %s dialup connection: %s"),
|
wxLogError(_("Failed to %s dialup connection: %s"),
|
||||||
async ? _("initiate") : _("establish"),
|
async ? _("initiate") : _("establish"),
|
||||||
GetErrorString(dwRet));
|
GetErrorString(dwRet).c_str());
|
||||||
|
|
||||||
// we should still call RasHangUp() if we got a non 0 connection
|
// we should still call RasHangUp() if we got a non 0 connection
|
||||||
if ( ms_hRasConnection )
|
if ( ms_hRasConnection )
|
||||||
@ -930,7 +931,7 @@ bool wxDialUpManagerMSW::HangUp()
|
|||||||
if ( dwRet != 0 )
|
if ( dwRet != 0 )
|
||||||
{
|
{
|
||||||
wxLogError(_("Failed to terminate the dialup connection: %s"),
|
wxLogError(_("Failed to terminate the dialup connection: %s"),
|
||||||
GetErrorString(dwRet));
|
GetErrorString(dwRet).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
ms_isConnected = FALSE;
|
ms_isConnected = FALSE;
|
||||||
@ -1161,7 +1162,7 @@ bool wxDialUpManagerMSW::EnableAutoCheckOnlineStatus(size_t nSeconds)
|
|||||||
if ( dwRet != 0 )
|
if ( dwRet != 0 )
|
||||||
{
|
{
|
||||||
wxLogDebug(wxT("RasConnectionNotification() failed: %s"),
|
wxLogDebug(wxT("RasConnectionNotification() failed: %s"),
|
||||||
GetErrorString(dwRet));
|
GetErrorString(dwRet).c_str());
|
||||||
|
|
||||||
CleanUpThreadData();
|
CleanUpThreadData();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user