Fix import thunk resolving.

This commit is contained in:
Skyth
2024-09-22 13:32:38 +03:00
parent 918e09d380
commit 510cff56f2
5 changed files with 11 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ void Image::Map(const std::string_view& name, size_t base, uint32_t size, uint8_
const void* Image::Find(size_t address) const
{
const auto section = sections.find(address);
const auto section = sections.lower_bound(address);
if (section == sections.end())
{
return nullptr;