Martin Payne development@martinpayne.me.uk writes:
- If OS type in NE header is 0x00 (unknown) or the linker version is 4.x, check for imports from DOSCALLS and KERNEL to distinguish between Windows and OS/2 or Multitasking DOS 4 executables.
- Prevents DISCARDABLE segments from link4 4.x executables being loaded as 32 bit segments.
- Assumes target Windows version is 1.01 if linker version is 4 or there is no expected version set in NE header.
- Don't try to load NE files with OS type of Windows/386. Even Windows/386 doesn't recognise these as Windows executables.
Could you please send each individual change as a separate patch?