mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
Fix possible module index overlap.
This commit is contained in:
1 parent
76afb2a8d5
commit
983e195dd2
1 file changed
+1
-1
@@ -443,7 +443,7 @@ u32 SymbolMap::GetModuleAbsoluteAddr(u32 relative, int moduleIndex) const {
|
||||
|
||||
int SymbolMap::GetModuleIndex(u32 address) const {
|
||||
lock_guard guard(lock_);
|
||||
auto iter = activeModuleEnds.lower_bound(address);
|
||||
auto iter = activeModuleEnds.upper_bound(address);
|
||||
if (iter == activeModuleEnds.end())
|
||||
return -1;
|
||||
return iter->second.index;
|
||||
|
||||
Reference in new issue
Block a user