diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2022-09-10 23:21:12 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2022-09-20 15:57:50 -0700 |
| commit | 717c36bc43c2a568b3fff04bd6d3ea2a81c0582d (patch) | |
| tree | a8fcbab66316f1f2bdb6a9b536a18eb3c7c49086 /Source/Core/WinUpdater/WinUI.cpp | |
| parent | 22197c09a3cf2753c007d8ef8d75daa5fc2c44b9 (diff) | |
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); } |
