Accept NE EXE type 0 or 1 (really old 16-bit OS/2 apps use 0).

This commit is contained in:
cracyc committed 2018-06-16 21:48:31 -04:00
1 parent a80afaa0c1
commit 38ae18c0fe
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ static int sanityCheckNeExe(const uint8 *exe, const uint32 exelen)
}
const NeHeader *ne = (const NeHeader *) exe;
if (ne->exe_type != 1) {
if (ne->exe_type > 1) {
fprintf(stderr, "Not an OS/2 NE EXE file (exe_type is %d, not 1)\n", (int) ne->exe_type);
return 0;
}
+1 -1
View File
@@ -81,7 +81,7 @@ static int sanityCheckNeModule(const uint8 *exe, const uint32 exelen)
}
const NeHeader *ne = (const NeHeader *) exe;
if (ne->exe_type != 1) {
if (ne->exe_type > 1) {
fprintf(stderr, "Not an OS/2 NE module file (exe_type is %d, not 1)\n", (int) ne->exe_type);
return 0;
}