Skip to content

Commit

Permalink
Per 0blu's suggestion, use the SymGetLineFromAddr macro instead of Sy…
Browse files Browse the repository at this point in the history
…mGetLineFromAddr64
  • Loading branch information
jeremy-rifkin committed Sep 13, 2024
1 parent d09378c commit 142e0b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbols/symbols_with_dbghelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ namespace dbghelp {
symbol->SizeOfStruct = sizeof(SYMBOL_INFO);
symbol->MaxNameLen = MAX_SYM_NAME;
union { DWORD64 a; DWORD b; } displacement;
IMAGEHLP_LINE64 line;
bool got_line = SymGetLineFromAddr64(proc, addr, &displacement.b, &line);
IMAGEHLP_LINE line;
bool got_line = SymGetLineFromAddr(proc, addr, &displacement.b, &line);
if(SymFromAddr(proc, addr, &displacement.a, symbol)) {
if(got_line) {
IMAGEHLP_STACK_FRAME frame;
Expand Down

0 comments on commit 142e0b9

Please sign in to comment.