PE: fix SizeOfHeaders value of Optional Header field
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
78f48d65d5
commit
1518e5bc98
+1
-3
@@ -2997,9 +2997,7 @@ void PeFile::unpack0(OutputFile *fo, const ht &ih, ht &oh,
|
||||
ODADDR(PEDIR_BOUNDIM) = 0;
|
||||
ODSIZE(PEDIR_BOUNDIM) = 0;
|
||||
|
||||
// oh.headersize = osection[0].rawdataptr;
|
||||
// oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(pe_section_t) * objs, oh.filealign);
|
||||
oh.headersize = rvamin;
|
||||
setOhHeaderSize(osection);
|
||||
oh.chksum = 0;
|
||||
|
||||
// write decompressed file
|
||||
|
||||
Reference in New Issue
Block a user