Runner: fix restarting with same elevation (#1133)

This commit is contained in:
Bartosz Sosnowski
2020-01-23 15:12:02 +01:00
committed by GitHub
parent f8bcf52741
commit cc99abcd14
2 changed files with 3 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ bool run_elevated(const std::wstring& file, const std::wstring& params) {
}
bool run_non_elevated(const std::wstring& file, const std::wstring& params) {
auto executable_args = file;
auto executable_args = L"\"" + file + L"\"";
if (!params.empty()) {
executable_args += L" " + params;
}
@@ -311,7 +311,7 @@ bool run_non_elevated(const std::wstring& file, const std::wstring& params) {
}
bool run_same_elevation(const std::wstring& file, const std::wstring& params) {
auto executable_args = file;
auto executable_args = L"\"" + file + L"\"";
if (!params.empty()) {
executable_args += L" " + params;
}