summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/AutoUpdate.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-09-10 23:21:12 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2022-09-20 15:57:50 -0700
commit717c36bc43c2a568b3fff04bd6d3ea2a81c0582d (patch)
treea8fcbab66316f1f2bdb6a9b536a18eb3c7c49086 /Source/Core/UICommon/AutoUpdate.cpp
parent22197c09a3cf2753c007d8ef8d75daa5fc2c44b9 (diff)
WinUpdater: Check OS and VC++ Redist versions.
Diffstat (limited to 'Source/Core/UICommon/AutoUpdate.cpp')
-rw-r--r--Source/Core/UICommon/AutoUpdate.cpp4
1 files changed, 2 insertions, 2 deletions
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(),