Convert to native separators before passing filename to Win32 APIs

This commit is contained in:
baldurk
2017-10-23 15:01:02 +01:00
parent 96d8502ca4
commit fbf37fd201
+1 -1
View File
@@ -833,7 +833,7 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par
{
#if defined(Q_OS_WIN32)
std::wstring wideExe = fullExecutablePath.toStdWString();
std::wstring wideExe = QDir::toNativeSeparators(fullExecutablePath).toStdWString();
std::wstring wideParams = params.join(QLatin1Char(' ')).toStdWString();
SHELLEXECUTEINFOW info = {};