From 8e646ba31d9023db342ec0deae59abfc5683b4ef Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 19 May 2017 05:02:06 +0300 Subject: add displacement to symbols --- src/dbghelp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dbghelp.cpp b/src/dbghelp.cpp index c319fee..ff8618f 100644 --- a/src/dbghelp.cpp +++ b/src/dbghelp.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include @@ -115,7 +114,7 @@ namespace pdb SymbolInfo DbgHelp::resolve_symbol(Address online) const { - DWORD64 displacement = 0; + Address displacement = 0; SymbolInfo symbol; const auto ret = SymFromAddr( @@ -127,6 +126,7 @@ namespace pdb if (!ret) throw error::windows(GetLastError()); + symbol.set_displacement(displacement); return symbol; } -- cgit v1.2.3