Closed OdinVex closed 2 years ago
This is already a planned addition/fix; related to this issue as well: https://github.com/atom0s/Steamless/issues/17
Yeah I fixed the calculations on my fork but I didn't think you'd agree with the way I did it. Also added the optional CRC options (but not pushed to my branch yet).
This is fixed in latest source/repo now. Will be in the next release.
Some PE32s feature Sections out of order. A loop in RebuildSections adding together VirtualAddress and VirtualSize aligned to SectionAlignment (according to PE32 Specification) should be used to determine the 'biggest that will be mapped' into memory and accurately, the SizeOfImage.