Skip to content

Commit

Permalink
Resolve #998
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 20, 2023
1 parent df97777 commit e082255
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/PE/DosHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ DosHeader::DosHeader(const details::pe_dos_header& header) :
oem_info_{header.OEMinfo},
addr_new_exe_header_{header.AddressOfNewExeHeader}
{
std::copy(
reinterpret_cast<const uint16_t*>(header.Reserved),
reinterpret_cast<const uint16_t*>(header.Reserved) + sizeof(reserved_t),
std::begin(reserved_));
std::copy(
reinterpret_cast<const uint16_t*>(header.Reserved2),
reinterpret_cast<const uint16_t*>(header.Reserved2) + sizeof(reserved2_t),
std::begin(reserved2_));
std::copy(std::begin(header.Reserved), std::end(header.Reserved),
std::begin(reserved_));

std::copy(std::begin(header.Reserved2), std::end(header.Reserved2),
std::begin(reserved2_));
}

void DosHeader::accept(LIEF::Visitor& visitor) const {
Expand Down

0 comments on commit e082255

Please sign in to comment.