Changeset 261
- Timestamp:
- Oct 24, 2004, 11:57:28 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/exeh.h
r257 r261 64 64 USHORT usIPStartup; // 14: IP at startup 65 65 USHORT usCodeSegOfs; // 16: code segment offset from EXE start 66 USHORT usRelocTableOfs; // 18: reloc table ofs.header (Win: >= 0x40 )66 USHORT usRelocTableOfs; // 18: reloc table ofs.header (Win: >= 0x40 || 0) 67 67 USHORT usOverlayNo; // 1a: overlay no. 68 68 USHORT usLinkerVersion; // 1c: linker version (if 0x18 > 0x28) … … 78 78 ULONG ulUnused6; // 34: 79 79 ULONG ulUnused7; // 38: 80 ULONG ulNewHeaderOfs; // 3c: new header ofs (if 0x18 > 0x40)80 ULONG ulNewHeaderOfs; // 3c: new header ofs (if 0x18 >= 0x40 || 0) 81 81 // fixed this from USHORT, thanks Martin Lafaix 82 82 // V0.9.7 (2000-12-20) [umoeller] -
trunk/src/cppbase/makefile
r249 r261 86 86 +$(OBJS: =&^ 87 87 ); 88 << KEEP88 << 89 89 -
trunk/src/helpers/exeh.c
r257 r261 294 294 else 295 295 { 296 // V1.0.3 (2004-10-24) [pr]: Some non-DOS EXEs have a relocation table 297 // offset which is 0 - these were previously identified as DOS EXEs. 296 298 // we have a DOS header: 297 if (pExec->DosExeHeader.usRelocTableOfs < 0x40) 298 { 299 // neither LX nor PE nor NE: 300 pExec->ulOS = EXEOS_DOS3; 301 pExec->ulExeFormat = EXEFORMAT_OLDDOS; 302 } 303 else 299 if ( ( (pExec->DosExeHeader.usRelocTableOfs == 0) 300 || (pExec->DosExeHeader.usRelocTableOfs >= sizeof(DOSEXEHEADER)) 301 ) 302 && (pExec->DosExeHeader.ulNewHeaderOfs != 0) 303 ) 304 304 { 305 305 // we have a new header offset: 306 306 fLoadNewHeader = TRUE; 307 307 ulNewHeaderOfs = pExec->DosExeHeader.ulNewHeaderOfs; 308 } 309 else 310 { 311 // else DOS: 312 pExec->ulOS = EXEOS_DOS3; 313 pExec->ulExeFormat = EXEFORMAT_OLDDOS; 308 314 } 309 315 } -
trunk/src/helpers/makefile
r249 r261 80 80 +$(OBJS: =&^ 81 81 ); 82 << KEEP82 << 83 83 84 84 # *************************************************************************** … … 95 95 +$(CPOBJS: =&^ 96 96 ); 97 << KEEP97 << 98 98 99 99 -
trunk/src/libbz2/makefile
r250 r261 87 87 +$(OBJS: =&^ 88 88 ); 89 << KEEP89 << 90 90 91 91
Note:
See TracChangeset
for help on using the changeset viewer.