mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00: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
|
|
@ -188,7 +188,7 @@ void Emulator::Load()
|
|||
{
|
||||
if(!wxFileExists(m_path)) return;
|
||||
|
||||
if(IsSelf(m_path.ToStdString()))
|
||||
if(IsSelf((const char *)m_path.mb_str()))
|
||||
{
|
||||
std::string self_path = m_path;
|
||||
std::string elf_path = wxFileName(m_path).GetPath().c_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue