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

@ -336,7 +336,7 @@ bool ELF64Loader::LoadPhdrData(u64 offset)
stub.s_text = re(stub.s_text);
const wxString& module_name = Memory.ReadString(stub.s_modulename);
Module* module = GetModuleByName(module_name.ToStdString());
Module* module = GetModuleByName((const char*)module_name.mb_str());
if(module)
{
//module->SetLoaded();