lx_dump: report OS/2 EXE flags for NE modules.

This commit is contained in:
Ryan C. Gordon committed 2018-06-13 01:00:12 -04:00
1 parent 37c3cc5a0a
commit ab60f82c43
2 files changed
+13 -1

No files matched your search

+2 -1
View File
@@ -167,7 +167,8 @@ typedef struct NeHeader
uint16 sector_alignment_shift_count;
uint16 num_resource_entries;
uint8 exe_type;
uint8 reserved[9];
uint8 os2_exe_flags;
uint8 reserved[8];
} NeHeader;
typedef struct NeSegmentTableEntry
+11
View File
@@ -575,6 +575,17 @@ static int parseNeExe(const uint8 *origexe, const uint8 *exe)
printf("Sector alignment shift count: %u\n", (uint) ne->sector_alignment_shift_count);
printf("Number of resource entries: %u\n", (uint) ne->num_resource_entries);
printf("Executable type: %u\n", (uint) ne->exe_type);
printf("OS/2 flags:");
if (ne->os2_exe_flags == 0) {
printf(" (none)");
} else {
if (ne->os2_exe_flags & (1 << 0)) printf(" LONGFILENAMES");
if (ne->os2_exe_flags & (1 << 1)) printf(" PROTECTEDMODE");
if (ne->os2_exe_flags & (1 << 2)) printf(" PROPORTIONALFONTS");
if (ne->os2_exe_flags & (1 << 3)) printf(" GANGLOADAREA");
}
printf("\n");
printf("\n");
const uint32 sector_shift = ne->sector_alignment_shift_count;