From 9ea2b31541f3ce3b2c0927569f6ea4026a764330 Mon Sep 17 00:00:00 2001 From: bitraid Date: Tue, 6 Apr 2021 22:49:31 +0300 Subject: [PATCH] PE: fix SectionHeadersSize of SizeOfHeaders value --- src/p_w32pe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)