Optimize module_manager::get_module

This commit is contained in:
Igor Pissolati
2025-10-22 17:21:34 -03:00
parent 46b97fd91c
commit 83aa3b663a
3 changed files with 11 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ struct mapped_module
bool contains(const uint64_t address) const
{
return address >= this->image_base && address < (this->image_base + this->size_of_image);
return (address - this->image_base) < this->size_of_image;
}
uint64_t find_export(const std::string_view export_name) const