diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 01:34:52 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 02:06:22 +0300 |
commit | c073ed8f702e98ec56ed05e0c02167e355e6ee31 (patch) | |
tree | f726a5830ed4f47724ac6c447571398ef5b12ea2 /src/module.cpp | |
parent | add Process class (diff) | |
download | winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.tar.gz winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.zip |
switch to Boost.Nowide everywhere
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/module.cpp b/src/module.cpp index 6ee0c08..f4f3eb9 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -5,6 +5,8 @@ #include "pdb/all.hpp" +#include <boost/nowide/convert.hpp> + #include <SafeInt.hpp> #include <cstring> @@ -28,6 +30,10 @@ ModuleInfo::Impl ModuleInfo::create_impl() { return impl; } +std::string ModuleInfo::get_name() const { + return boost::nowide::narrow(impl.ModuleName); +} + Address Module::translate_offline_address(Address offline) const { if (offline < get_offline_base()) throw std::range_error{invalid_offline_address(offline)}; |