diff --git a/src/windows-emulator/module/module_manager.hpp b/src/windows-emulator/module/module_manager.hpp index f0d18a05..7a789d9d 100644 --- a/src/windows-emulator/module/module_manager.hpp +++ b/src/windows-emulator/module/module_manager.hpp @@ -83,6 +83,12 @@ class module_manager } std::advance(upper_bound, -1); - return upper_bound; + + if (upper_bound->second.is_within(address)) + { + return upper_bound; + } + + return this->modules_.end(); } };