PE: fix SectionHeadersSize of SizeOfHeaders value

This commit is contained in:
bitraid 2021-04-06 22:49:31 +03:00 committed by Markus F.X.J. Oberhumer
parent 09da986742
commit 9ea2b31541
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ void PackW32Pe::setOhDataBase(const pe_section_t *osection)
void PackW32Pe::setOhHeaderSize(const pe_section_t *osection)
{
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(osection) * oh.objects, oh.filealign);
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(*osection) * oh.objects, oh.filealign);
}
void PackW32Pe::pack(OutputFile *fo)