Avoid crash in IsValidVirtualAddress()

This commit is contained in:
Jarek Syrylak
2018-07-10 10:25:34 +01:00
parent 4a657f5fb6
commit 9cb1f759ca
2 changed files with 11 additions and 7 deletions

View File

@@ -117,8 +117,8 @@ bool AppLoader_NRO::LoadNro(const std::string& path, VAddr load_base) {
Core::CurrentProcess()->LoadModule(codeset, load_base);
std::string filename;
Common::SplitPath(path, nullptr, &filename, nullptr);
GDBStub::RegisterModule((filename+".elf").c_str(), load_base, load_base);
Common::SplitPath(codeset->name, nullptr, &filename, nullptr);
GDBStub::RegisterModule((filename + ".elf").c_str(), load_base, load_base);
return true;
}