mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-26 21:00:50 -04:00
Update crashlog.cpp
This commit is contained in:
parent
d192bee692
commit
ad37fd5487
1 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ static void printAddr(
|
|||
&module
|
||||
)) {
|
||||
// calculate base + [address]
|
||||
const auto diff = as<uintptr_t>(addr) - as<uintptr_t>(module);
|
||||
const auto diff = reinterpret_cast<uintptr_t>(addr) - reinterpret_cast<uintptr_t>(module);
|
||||
stream
|
||||
<< getModuleName(module, fullPath) << " + "
|
||||
<< std::hex << diff << std::dec;
|
||||
|
@ -121,7 +121,7 @@ static void printAddr(
|
|||
|
||||
if (SymFromAddr(
|
||||
proc,
|
||||
static_cast<DWORD64>(as<uintptr_t>(addr)),
|
||||
static_cast<DWORD64>(reinterpret_cast<uintptr_t>(addr)),
|
||||
&displacement,
|
||||
symbolInfo
|
||||
)) {
|
||||
|
@ -137,7 +137,7 @@ static void printAddr(
|
|||
|
||||
if (SymGetLineFromAddr64(
|
||||
proc,
|
||||
static_cast<DWORD64>(as<uintptr_t>(addr)),
|
||||
static_cast<DWORD64>(reinterpret_cast<uintptr_t>(addr)),
|
||||
&displacement2,
|
||||
&line
|
||||
)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue