Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2016, 6:08:13 PM (9 years ago)
Author:
landauf
Message:

fixed code to compile in 64bit mode

Location:
code/trunk/src/libraries/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/SignalHandler.cc

    r11071 r11115  
    722722        // Now print information about where the fault occured
    723723        output += " at location " + SignalHandler::pointerToString(pExceptionRecord->ExceptionAddress);
    724         if ((hModule = (HMODULE) SignalHandler::getModuleBase((DWORD) pExceptionRecord->ExceptionAddress)) && GetModuleFileName(hModule, szModule, MAX_PATH))
     724        if ((hModule = (HMODULE) SignalHandler::getModuleBase(pExceptionRecord->ExceptionAddress)) && GetModuleFileName(hModule, szModule, MAX_PATH))
    725725        {
    726726            output += " in module ";
     
    748748    /// Retrieves the base address of the module that contains the specified address.
    749749    // Code from Dr. Mingw by Jos\E9 Fonseca
    750     /* static */ DWORD SignalHandler::getModuleBase(DWORD dwAddress)
     750    /* static */ PVOID SignalHandler::getModuleBase(LPCVOID dwAddress)
    751751    {
    752752        MEMORY_BASIC_INFORMATION Buffer;
    753753
    754         return VirtualQuery((LPCVOID) dwAddress, &Buffer, sizeof(Buffer)) ? (DWORD) Buffer.AllocationBase : 0;
     754        return VirtualQuery(dwAddress, &Buffer, sizeof(Buffer)) ? Buffer.AllocationBase : 0;
    755755    }
    756756
  • code/trunk/src/libraries/util/SignalHandler.h

    r11071 r11115  
    120120
    121121            static std::string getModuleName(const std::string& path);
    122             static DWORD getModuleBase(DWORD dwAddress);
     122            static PVOID getModuleBase(LPCVOID dwAddress);
    123123
    124124            template <typename T>
Note: See TracChangeset for help on using the changeset viewer.