From 717c36bc43c2a568b3fff04bd6d3ea2a81c0582d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 10 Sep 2022 23:21:12 -0700 Subject: WinUpdater: Check OS and VC++ Redist versions. --- Source/Core/WinUpdater/WinUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/WinUpdater/WinUI.cpp') 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); } -- cgit v1.2.3