unexepack.exe stops processing relocations at the first empty section
Open-source reimplementation of the original King's Bounty
Status: Alpha
Brought to you by:
driedfruit
unexepack.c was helpful to me; I found it linked from http://www.shikadi.net/moddingwiki/Microsoft_EXEPACK#Tools. However I encountered a bug when trying to unpack https://archive.org/download/MegaManPC/MegaManPC.zip/MM.EXE from Mega Man for DOS. The problem is that MM.EXE stores all its compressed relocation entries in section 0x1000. There are no relocation entries in section 0x0000. unexecpack stops processing relocation entries when it reaches an empty section, so it never gets to section 0x1000. This patch fixed the problem for me.
Anonymous
I'm extemely happy unexepack was of some use to you, I'll integrate your patch ASAP.