diff options
| author | Sepalani <sepalani@hotmail.fr> | 2025-01-04 17:02:13 +0400 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2025-01-04 17:02:13 +0400 |
| commit | bbf835b30b2386707130ea6f5fb5c615a4858cb3 (patch) | |
| tree | c52a94596d475d60d577767836d7f96dc854de33 /Source/Core | |
| parent | 77e77863dc6500eb1cc60f64a13dc26d06eea3b8 (diff) | |
PPCSymbolDB: Check SplitString result
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/PPCSymbolDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp index d7ebd5433d..b131b15f84 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp @@ -398,7 +398,7 @@ bool PPCSymbolDB::LoadMap(const Core::CPUThreadGuard& guard, const std::string& // Split the current name string into separate parts, and get the object name // if it exists. const std::vector<std::string> parts = SplitString(name, '\t'); - const std::string name_string(StripWhitespace(parts[0])); + const std::string name_string(StripWhitespace(parts.size() > 0 ? parts[0] : name)); const std::string object_filename_string = parts.size() > 1 ? std::string(StripWhitespace(parts[1])) : ""; |
