diff --git a/src/common/platform/win_pefile.hpp b/src/common/platform/win_pefile.hpp index 20c1327a..24acb4ab 100644 --- a/src/common/platform/win_pefile.hpp +++ b/src/common/platform/win_pefile.hpp @@ -278,7 +278,7 @@ typedef struct _IMAGE_BASE_RELOCATION { DWORD VirtualAddress; DWORD SizeOfBlock; - WORD TypeOffset[1]; + // WORD TypeOffset[1]; } IMAGE_BASE_RELOCATION, *PIMAGE_BASE_RELOCATION; #endif diff --git a/src/common/utils/path_key.hpp b/src/common/utils/path_key.hpp index b45163f5..617f0993 100644 --- a/src/common/utils/path_key.hpp +++ b/src/common/utils/path_key.hpp @@ -42,7 +42,7 @@ namespace utils auto key_string = key.u16string(); std::ranges::replace(key_string, u'\\', '/'); - auto path = std::filesystem::path(key).lexically_normal().wstring(); + auto path = std::filesystem::path(key_string).lexically_normal().wstring(); return utils::string::to_lower_consume(path); }