From e8ee9feb6aaeec779566c8ad084f77cde8234566 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 14 Oct 2016 03:09:29 +0300 Subject: fix GCC errors --- src/process.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/process.cpp') 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(); -- cgit v1.2.3