Skip to content

Commit

Permalink
[common] host: fix compliation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Dec 7, 2023
1 parent 4b4e078 commit b776b00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/src/platform/windows/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ static LONG CALLBACK exception_filter(EXCEPTION_POINTERS * exc)
DWORD lineDisp;

if (SymGetLineFromAddr64(hProcess, frame.AddrPC.Offset, &lineDisp, &line))
DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64 " (%s:%ld+0x%lx)", i, moduleName, symbol->Name, disp,
line.FileName, line.LineNumber, lineDisp);
DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64 " (%s:%" PRIx64 "+0x%" PRIx64 ")",
i, moduleName, symbol->Name, disp, line.FileName,
(uint64_t)line.LineNumber, (uint64_t)lineDisp);
else
DEBUG_ERROR("[trace]: %2d: %s:%s+0x%" PRIx64, i, moduleName, symbol->Name, disp);
}
Expand Down

0 comments on commit b776b00

Please sign in to comment.