Ignore:
Timestamp:
Nov 5, 2000, 2:40:47 PM (25 years ago)
Author:
sandervl
Message:

Use DosLoadModule instead of O32_LoadLibrary; changed log strings in exception dump (.dll/.exe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptstackdump.cpp

    r3528 r4555  
    1 /* $Id: exceptstackdump.cpp,v 1.2 2000-05-13 07:16:11 sandervl Exp $ */
     1/* $Id: exceptstackdump.cpp,v 1.3 2000-11-05 13:40:45 sandervl Exp $ */
    22/*
    33 * Stack dump code
     
    240240//              dprintf(("skiploop %x (rc %x, Attr %x Size %d)\n", *stacktop, rc, Attr, Size));
    241241                if(WinExe && WinExe->insideModule(addr) && WinExe->insideModuleCode(addr)) {
    242                         sprintf(Name, "%s.EXE", WinExe->getModuleName());
     242                        sprintf(Name, "%s", WinExe->getModuleName());
    243243                        dprintf(("%-13s      at 0x%08x\n", Name, addr));
    244244                }
     
    246246                        Win32DllBase *dll = Win32DllBase::findModuleByAddr(addr);
    247247                        if(dll && dll->insideModuleCode(addr)) {
    248                                 sprintf(Name, "%s.DLL", dll->getModuleName());
     248                                sprintf(Name, "%s", dll->getModuleName());
    249249                                dprintf(("%-13s      at 0x%08x\n", Name, addr));
    250250                        }
     
    291291        else {
    292292                if(WinExe && WinExe->insideModule(addr) && WinExe->insideModuleCode(addr)) {
    293                         sprintf(Name, "%s.EXE", WinExe->getModuleName());
     293                        sprintf(Name, "%s", WinExe->getModuleName());
    294294                        dprintf(("%-13s      at 0x%08x\n", Name, addr));
    295295                }
     
    297297                        Win32DllBase *dll = Win32DllBase::findModuleByAddr(addr);
    298298                        if(dll && dll->insideModuleCode(addr)) {
    299                                 sprintf(Name, "%s.DLL", dll->getModuleName());
     299                                sprintf(Name, "%s", dll->getModuleName());
    300300                                dprintf(("%-13s      at 0x%08x\n", Name, addr));
    301301                        }
     
    309309  addr = pCtxRec->ctx_RegEip;   
    310310  if(WinExe && WinExe->insideModule(addr) && WinExe->insideModuleCode(addr)) {
    311      sprintf(Name, "%s.EXE", WinExe->getModuleName());
     311     sprintf(Name, "%s", WinExe->getModuleName());
    312312     dprintf(("%-13s      at 0x%08x\n", Name, addr));
    313313  }
     
    315315     Win32DllBase *dll = Win32DllBase::findModuleByAddr(addr);
    316316     if(dll && dll->insideModuleCode(addr)) {
    317         sprintf(Name, "%s.DLL", dll->getModuleName());
     317        sprintf(Name, "%s", dll->getModuleName());
    318318        dprintf(("%-13s      at 0x%08x\n", Name, addr));
    319319     }
Note: See TracChangeset for help on using the changeset viewer.