diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-14 03:09:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-14 03:09:29 +0300 |
commit | e8ee9feb6aaeec779566c8ad084f77cde8234566 (patch) | |
tree | fe79a65766d1742bd735a40e59e832ce9d4fae8d /src/process.cpp | |
parent | move code from headers to .cpp files (diff) | |
download | privilege-check-e8ee9feb6aaeec779566c8ad084f77cde8234566.tar.gz privilege-check-e8ee9feb6aaeec779566c8ad084f77cde8234566.zip |
fix GCC errors
Diffstat (limited to '')
-rw-r--r-- | src/process.cpp | 4 |
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(); |