mirror of https://github.com/upx/upx.git
PE: fix SectionHeadersSize of SizeOfHeaders value
This commit is contained in:
parent
09da986742
commit
9ea2b31541
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue