PE: fix SizeOfHeaders value of Optional Header field

This commit is contained in:
bitraid
2021-03-25 21:41:49 +02:00
committed by Markus F.X.J. Oberhumer
parent 78f48d65d5
commit 1518e5bc98
4 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -278,8 +278,7 @@ void PackW32Pe::setOhDataBase(const pe_section_t *osection)
void PackW32Pe::setOhHeaderSize(const pe_section_t *osection)
{
(void)osection;
oh.headersize = rvamin; // FIXME
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(osection) * oh.objects, oh.filealign);
}
void PackW32Pe::pack(OutputFile *fo)