mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-24 22:21:03 +00:00
Fix PE parsing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user