aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/process.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-15 22:18:00 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-15 22:40:36 +0300
commit79c19c6a1c400b28f27ca6f44dd11e07ac43ec85 (patch)
treec934d0c0e2e2abd4fc85324a37d2e402d01a1200 /src/process.cpp
parentget rid of SafeInt (diff)
downloadwinapi-debug-79c19c6a1c400b28f27ca6f44dd11e07ac43ec85.tar.gz
winapi-debug-79c19c6a1c400b28f27ca6f44dd11e07ac43ec85.zip
switch from Boost.Nowide to winapi-utf8
Diffstat (limited to '')
-rw-r--r--src/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.cpp b/src/process.cpp
index adb4b96..022a1b3 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -5,7 +5,7 @@
#include <pdb/all.hpp>
-#include <boost/nowide/convert.hpp>
+#include <winapi/utf8.hpp>
#include <windows.h>
@@ -70,7 +70,7 @@ std::string get_current_executable_path(PathBuffer& buffer) {
return get_current_executable_path(buffer);
}
- return boost::nowide::narrow(buffer.get_data());
+ return winapi::narrow(buffer.get_data());
}
std::string get_current_executable_path() {
@@ -84,7 +84,7 @@ std::string get_executable_path(const Handle& process, PathBuffer& buffer) {
const auto ec = ::QueryFullProcessImageNameW(process.get(), 0, buffer.get_data(), &size);
if (ec != 0) {
- return boost::nowide::narrow(buffer.get_data());
+ return winapi::narrow(buffer.get_data());
}
if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) {