diff --git a/src/p_w32pe.cpp b/src/p_w32pe.cpp index c6363ee4..74819521 100644 --- a/src/p_w32pe.cpp +++ b/src/p_w32pe.cpp @@ -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)