Update linker.cpp

2.0
_xeroxz 4 years ago
parent fd23e65f16
commit 63a9e8ccfc

@ -77,9 +77,9 @@ namespace lnk
while (reinterpret_cast<std::uint8_t*>(archive_headers) < lib_file.data() + lib_file.size()) while (reinterpret_cast<std::uint8_t*>(archive_headers) < lib_file.data() + lib_file.size())
{ {
// im not doing alignment correctly, i cannot find // im not doing alignment correctly, i cannot find
// anything online about it either, this "works" for now, but it will probably not // anything online about it either, this "works" for now, but it will probably not
// on other linkers.... // on other linkers....
if (archive_headers->Name[0] == '\n') if (archive_headers->Name[0] == '\n')
archive_headers = reinterpret_cast<PIMAGE_ARCHIVE_MEMBER_HEADER>( archive_headers = reinterpret_cast<PIMAGE_ARCHIVE_MEMBER_HEADER>(
reinterpret_cast<std::uintptr_t>(archive_headers) + 1); reinterpret_cast<std::uintptr_t>(archive_headers) + 1);

Loading…
Cancel
Save