Ignore:
Timestamp:
Jun 17, 2002, 9:55:18 PM (23 years ago)
Author:
umoeller
Message:

Added window list debugger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/exeh.c

    r169 r176  
    22/*
    33 *@@sourcefile exeh.c:
    4  *      contains code to load and parse executable files,
    5  *      including resources.
    6  *      See exehOpen for details.
     4 *      contains code to load and parse executable headers
     5 *      and resources. See exehOpen for details.
    76 *
    87 *      This file is new with V0.9.16 (2002-01-05) [umoeller]
     
    8988 *      executable headers manually. Since DosLoadModule
    9089 *      et al is never used, the OS/2 executable loader
    91  *      is completely circumvented.
     90 *      is completely circumvented. (Side note:
     91 *      DosLoadModule cannot be used on EXE files in
     92 *      the first place.)
    9293 *
    9394 *      To be more precise, this uses doshOpen internally
     
    149150 *      V0.9.12 adds support for NOSTUB executables,
    150151 *      which are new-style executables (NE or LX)
    151  *      without a leading DOS header. The executable
    152  *      then starts directly with the NE or LX header.
    153  *      I am not sure whether PE supports such things
    154  *      as well... if so, it should be supported too.
     152 *      without a leading DOS header. JFS.IFS uses that
     153 *      format, for example. The executable then starts
     154 *      directly with the NE or LX header. I am not sure
     155 *      whether PE supports such beasts  as well... if
     156 *      so, it should be supported too.
    155157 *
    156158 *      Note that not all of the other exeh* functions
     
    458460                                }
    459461                            }
    460                         }
    461                     }
    462                 }
    463             }
     462                        } // end else if (cbRead < sizeof(IMAGE_FILE_HEADER))
     463                    } // end if (!(arc = doshReadAt(pFile,
     464                } // end else if (!(pExec->pPEHeader = (PPEHEADER)malloc(sizeof(PEHEADER))))
     465            } // end else if (!memcmp(achNewHeaderType, "PE\0\0", 4))
    464466            else
    465467                // strange type:
     
    22772279                              int cchSrcPage)              // in: size of source buf
    22782280{
    2279     char *          pachDestPage = pachPage; /* Store the pointer for boundrary checking. */
     2281    char    *pachDestPage = pachPage; /* Store the pointer for boundrary checking. */
    22802282
    22812283    while (cchSrcPage > 0)
     
    25602562        ULONG ulPageSize = pExec->pLXHeader->ulPageSize;
    25612563
    2562         ulOffset +=   ulExeOffset;
     2564        ulOffset += ulExeOffset;
    25632565
    25642566        /* _Pmpf(("  reading pgtbl %d, ofs %d, type %s",
     
    31133115 *      exehOpen.
    31143116 *
    3115  *      This automaticall calls exehFreeLXMaps.
     3117 *      This automaticall calls exehFreeLXMaps and
     3118 *      exehFreeNEMaps.
    31163119 *
    31173120 *@@added V0.9.0 [umoeller]
Note: See TracChangeset for help on using the changeset viewer.