- Timestamp:
- Nov 15, 2001, 4:00:15 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r6975 r7350 1 /* $Id: winimagepeldr.cpp,v 1.9 0 2001-10-09 20:25:21 sandervlExp $ */1 /* $Id: winimagepeldr.cpp,v 1.91 2001-11-15 14:59:06 phaller Exp $ */ 2 2 3 3 /* … … 180 180 181 181 hFile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE); 182 182 183 dprintf((LOG, "KERNEL32-PELDR: Opening PE-image (%s) returned handle %08xh.\n", 184 szFileName, 185 hFile)); 186 183 187 //default error: 184 188 strcpy(szErrorModule, OSLibStripPath(szFileName)); … … 693 697 return rc; 694 698 } 699 700 // PH 2001-11-15 701 // For corrupt or misinterpreted PE headers, 702 // the preceeding DosSetFilePtr may have moved the 703 // file pointer at or behind the file's end. 704 // DosRead will then return rc=0 and ulReadBytes=0. 705 // This must NOT lead to an infinite loop. 706 if (ulReadBytes == 0) 707 { 708 return ERROR_INTERNAL; 709 } 695 710 696 711 ulSize -= ulReadBytes;
Note:
See TracChangeset
for help on using the changeset viewer.