diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 19:22:40 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-27 11:25:22 +0300 |
commit | 10b3c9e5a8ce46cfbc3c80042fcaf6079f6a8a34 (patch) | |
tree | 13cb9beac308afab5ec1188bb73f28beb64eafe2 /src | |
parent | fix a bug where I failed to account for TCHARs, again (diff) | |
download | winapi-debug-10b3c9e5a8ce46cfbc3c80042fcaf6079f6a8a34.tar.gz winapi-debug-10b3c9e5a8ce46cfbc3c80042fcaf6079f6a8a34.zip |
add some unit tests
Diffstat (limited to 'src')
-rw-r--r-- | src/symbol.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/symbol.cpp b/src/symbol.cpp index 3b0f5d9..d51cc83 100644 --- a/src/symbol.cpp +++ b/src/symbol.cpp @@ -57,7 +57,9 @@ SymbolInfo::SymbolInfo(const Impl& impl) : SymbolInfo{} { } std::string SymbolInfo::get_name() const { - return boost::nowide::narrow(std::wstring{get_impl().Name, get_impl().NameLen}); + // SymFromAddrW, contrary to SymFromAddrA, seems to include the terminating + // null character in NameLen. + return boost::nowide::narrow(get_impl().Name); } LineInfo::LineInfo(const Impl& impl) |