diff --git a/Source/Process/ProcessMap.cpp b/Source/Process/ProcessMap.cpp index 34ab99b4..3dd5bd5a 100644 --- a/Source/Process/ProcessMap.cpp +++ b/Source/Process/ProcessMap.cpp @@ -18,13 +18,16 @@ namespace Aurora::Process { - struct ModuleBasePairUtil + struct ModuleBasePairHash { AuUInt operator()(const ModuleBasePair &in) const { return in.modBase; } + }; + struct ModuleBasePairEq + { constexpr bool operator()(const ModuleBasePair &lhs, const AuString &rhs) const { return lhs.module == rhs; @@ -56,7 +59,7 @@ namespace Aurora::Process static const auto kPageBufferPad = 20; static AuThreadPrimitives::MutexUnique_t gMutexUnique; - static AuHashMapEx, ModuleBasePairUtil> gModuleMap; + static AuHashMap, ModuleBasePairHash, ModuleBasePairEq> gModuleMap; static AuUInt ToLowestPageAlignment(AuUInt in) {