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

@@ -47,5 +47,5 @@ bool restart_same_elevation()
constexpr DWORD exe_path_size = 0xFFFF;
auto exe_path = std::make_unique<wchar_t[]>(exe_path_size);
GetModuleFileNameW(nullptr, exe_path.get(), exe_path_size);
return run_same_elevation(exe_path.get(), {});
return run_same_elevation(exe_path.get(), L"--dont-elevate");
}