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/UICommon/AutoUpdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/UICommon/AutoUpdate.cpp') diff --git a/Source/Core/UICommon/AutoUpdate.cpp b/Source/Core/UICommon/AutoUpdate.cpp index de8d426c7f..814f66c87b 100644 --- a/Source/Core/UICommon/AutoUpdate.cpp +++ b/Source/Core/UICommon/AutoUpdate.cpp @@ -246,11 +246,11 @@ void AutoUpdateChecker::TriggerUpdate(const AutoUpdateChecker::NewVersionInforma #endif // Run the updater! - const std::string command_line = MakeUpdaterCommandLine(updater_flags); + std::string command_line = MakeUpdaterCommandLine(updater_flags); INFO_LOG_FMT(COMMON, "Updater command line: {}", command_line); #ifdef _WIN32 - STARTUPINFO sinfo = {sizeof(sinfo)}; + STARTUPINFO sinfo{.cb = sizeof(sinfo)}; sinfo.dwFlags = STARTF_FORCEOFFFEEDBACK; // No hourglass cursor after starting the process. PROCESS_INFORMATION pinfo; if (CreateProcessW(UTF8ToWString(reloc_updater_path).c_str(), UTF8ToWString(command_line).data(), -- cgit v1.2.3