summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/AutoUpdate.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-10-21 13:55:51 -0400
committerGitHub <noreply@github.com>2022-10-21 13:55:51 -0400
commit00e23da6074b5b25a2ff4e4ff040986c07753e94 (patch)
tree2831c77c6a2aabb04c1d53c408df0b20dd6d0efe /Source/Core/UICommon/AutoUpdate.cpp
parent9222956acdfb6a0526b6fdada4aeaa936de9fcd1 (diff)
parent717c36bc43c2a568b3fff04bd6d3ea2a81c0582d (diff)
Merge pull request #11051 from shuffle2/update-vcredist
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(),