summaryrefslogtreecommitdiff
path: root/src/selfupdater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selfupdater.cpp')
-rw-r--r--src/selfupdater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp
index 7c0682bf..d26ca96c 100644
--- a/src/selfupdater.cpp
+++ b/src/selfupdater.cpp
@@ -327,10 +327,10 @@ void SelfUpdater::installUpdate()
const QString mopath
= QDir::fromNativeSeparators(qApp->property("dataPath").toString());
- const std::wstring params = L"/DIR=" + qApp->applicationDirPath().toStdWString();
+ std::wstring parameters = ToWString("/DIR=\"" + qApp->applicationDirPath() + "\" ");
HINSTANCE res = ::ShellExecuteW(
- nullptr, L"open", m_UpdateFile.fileName().toStdWString().c_str(), params.c_str(),
+ nullptr, L"open", m_UpdateFile.fileName().toStdWString().c_str(), parameters.c_str(),
nullptr, SW_SHOW);
if (res > (HINSTANCE)32) {