aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/dbghelp.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-19 05:02:06 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-19 05:02:06 +0300
commit8e646ba31d9023db342ec0deae59abfc5683b4ef (patch)
tree560fd0c3ed88216134cbf5b1ec0b6c6ccbd8ce6a /src/dbghelp.cpp
parentinitial commit (diff)
downloadwinapi-debug-8e646ba31d9023db342ec0deae59abfc5683b4ef.tar.gz
winapi-debug-8e646ba31d9023db342ec0deae59abfc5683b4ef.zip
add displacement to symbols
Diffstat (limited to '')
-rw-r--r--src/dbghelp.cpp4
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;
}