diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-10-21 13:55:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 13:55:51 -0400 |
| commit | 00e23da6074b5b25a2ff4e4ff040986c07753e94 (patch) | |
| tree | 2831c77c6a2aabb04c1d53c408df0b20dd6d0efe /Source/Core/WinUpdater/WinUI.cpp | |
| parent | 9222956acdfb6a0526b6fdada4aeaa936de9fcd1 (diff) | |
| parent | 717c36bc43c2a568b3fff04bd6d3ea2a81c0582d (diff) | |
Merge pull request #11051 from shuffle2/update-vcredist
WinUpdater: Check OS and VC++ Redist versions
Diffstat (limited to 'Source/Core/WinUpdater/WinUI.cpp')
| -rw-r--r-- | Source/Core/WinUpdater/WinUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/WinUpdater/WinUI.cpp b/Source/Core/WinUpdater/WinUI.cpp index 62b02eb0c0..1671f43457 100644 --- a/Source/Core/WinUpdater/WinUI.cpp +++ b/Source/Core/WinUpdater/WinUI.cpp @@ -253,8 +253,8 @@ void Stop() void LaunchApplication(std::string path) { - // Hack: Launching the updater over the explorer ensures that admin priviliges are dropped. Why? - // Ask Microsoft. + // Indirectly start the application via explorer. This effectively drops admin priviliges because + // explorer is running as current user. ShellExecuteW(nullptr, nullptr, L"explorer.exe", UTF8ToWString(path).c_str(), nullptr, SW_SHOW); } |
