aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/process.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 03:09:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 03:09:29 +0300
commite8ee9feb6aaeec779566c8ad084f77cde8234566 (patch)
treefe79a65766d1742bd735a40e59e832ce9d4fae8d /src/process.cpp
parentmove code from headers to .cpp files (diff)
downloadprivilege-check-e8ee9feb6aaeec779566c8ad084f77cde8234566.tar.gz
privilege-check-e8ee9feb6aaeec779566c8ad084f77cde8234566.zip
fix GCC errors
Diffstat (limited to 'src/process.cpp')
-rw-r--r--src/process.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/process.cpp b/src/process.cpp
index 94765bc..a0618fa 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -23,7 +23,7 @@ namespace process
const auto ret = GetModuleFileNameW(NULL, buf.data(), max_path);
- if (GetLastError() != ERROR_SUCCESS)
+ if (ret != ERROR_SUCCESS)
error::raise("GetModuleFileNameW");
return buf.data();
@@ -34,8 +34,6 @@ namespace process
HWND hwnd,
int nShow)
{
- static constexpr auto sep = L' ';
-
const auto exe_path = cmd_line.has_argv0()
? cmd_line.get_argv0()
: get_executable_path();