mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
prevent overflow becaus wxStrings aren't \0 terminated anymore
This commit is contained in:
parent
b9abb1e075
commit
3f52a6aa50
8 changed files with 12 additions and 31 deletions
|
@ -91,7 +91,7 @@ void GameViewer::DClick(wxListEvent& event)
|
|||
const wxString& path = m_path + m_game_data[i].root;
|
||||
|
||||
Emu.Stop();
|
||||
if(!Emu.BootGame(path.ToStdString()))
|
||||
if(!Emu.BootGame((const char *)path.mb_str()))
|
||||
{
|
||||
ConLog.Error("Boot error: elf not found! [%s]", path.mb_str());
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue