Skip to content

Commit

Permalink
Accept NE EXE type 0 or 1 (really old 16-bit OS/2 apps use 0).
Browse files Browse the repository at this point in the history
  • Loading branch information
cracyc committed Jun 17, 2018
1 parent a80afaa commit 38ae18c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lx_dump.c
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion lx_loader.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 38ae18c

Please sign in to comment.