diff --git a/GUI/host/host.cpp b/GUI/host/host.cpp index d1b0363..8662c00 100644 --- a/GUI/host/host.cpp +++ b/GUI/host/host.cpp @@ -57,8 +57,7 @@ namespace size_t HashThreadParam(ThreadParam tp) { - std::hash hash; - return hash(hash(tp.processId) + hash(tp.addr) + hash(tp.ctx) + hash(tp.ctx2)); + return std::hash()(tp.processId + tp.addr) + std::hash()(tp.ctx + tp.ctx2); } ThreadSafe, Functor>, std::recursive_mutex> textThreadsByParams; ThreadSafe, std::recursive_mutex> processRecordsByIds; @@ -160,8 +159,7 @@ namespace Host return false; } - static HMODULE vnrhook = LoadLibraryExW(ITH_DLL, nullptr, DONT_RESOLVE_DLL_REFERENCES); - static std::wstring location = Util::GetModuleFilename(vnrhook).value(); + static std::wstring location = Util::GetModuleFilename(LoadLibraryExW(ITH_DLL, nullptr, DONT_RESOLVE_DLL_REFERENCES)).value(); if (AutoHandle<> process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId)) {