diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-19 05:02:06 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-19 05:02:06 +0300 |
commit | 8e646ba31d9023db342ec0deae59abfc5683b4ef (patch) | |
tree | 560fd0c3ed88216134cbf5b1ec0b6c6ccbd8ce6a /src | |
parent | initial commit (diff) | |
download | winapi-debug-8e646ba31d9023db342ec0deae59abfc5683b4ef.tar.gz winapi-debug-8e646ba31d9023db342ec0deae59abfc5683b4ef.zip |
add displacement to symbols
Diffstat (limited to 'src')
-rw-r--r-- | src/dbghelp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <DbgHelp.h> #include <cstddef> -#include <cstring> #include <limits> #include <stdexcept> @@ -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; } |