Fix PE parsing

This commit is contained in:
momo5502
2025-01-22 14:06:07 +01:00
parent ec1333278b
commit d836567db1
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);
}