From 142e0b9ea48d2067d031a992a41a66042af6d207 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:06:05 -0500 Subject: [PATCH] Per 0blu's suggestion, use the SymGetLineFromAddr macro instead of SymGetLineFromAddr64 --- src/symbols/symbols_with_dbghelp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/symbols/symbols_with_dbghelp.cpp b/src/symbols/symbols_with_dbghelp.cpp index fed0651..981cb10 100644 --- a/src/symbols/symbols_with_dbghelp.cpp +++ b/src/symbols/symbols_with_dbghelp.cpp @@ -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;