prevent overflow becaus wxStrings aren't \0 terminated anymore

This commit is contained in:
Peter Tissen 2014-02-10 02:43:24 +01:00
parent b9abb1e075
commit 3f52a6aa50
8 changed files with 12 additions and 31 deletions

View file

@ -192,7 +192,7 @@ void MainFrame::BootGame(wxCommandEvent& WXUNUSED(event))
Emu.Stop();
if(Emu.BootGame(ctrl.GetPath().ToStdString()))
if(Emu.BootGame((const char *)ctrl.GetPath().mb_str()))
{
ConLog.Success("Game: boot done.");
}
@ -250,7 +250,7 @@ void MainFrame::InstallPkg(wxCommandEvent& WXUNUSED(event))
//Refresh game list
m_game_viewer->Refresh();
if(Emu.BootGame(pkgDir.ToStdString()))
if(Emu.BootGame((const char*)pkgDir.mb_str()))
{
ConLog.Success("Game: boot done.");
}