mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix possible module index overlap.
This commit is contained in:
parent
76afb2a8d5
commit
983e195dd2
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ u32 SymbolMap::GetModuleAbsoluteAddr(u32 relative, int moduleIndex) const {
|
||||||
|
|
||||||
int SymbolMap::GetModuleIndex(u32 address) const {
|
int SymbolMap::GetModuleIndex(u32 address) const {
|
||||||
lock_guard guard(lock_);
|
lock_guard guard(lock_);
|
||||||
auto iter = activeModuleEnds.lower_bound(address);
|
auto iter = activeModuleEnds.upper_bound(address);
|
||||||
if (iter == activeModuleEnds.end())
|
if (iter == activeModuleEnds.end())
|
||||||
return -1;
|
return -1;
|
||||||
return iter->second.index;
|
return iter->second.index;
|
||||||
|
|
Loading…
Add table
Reference in a new issue