Fix build with Clang on Windows

This commit is contained in:
Mat Sutcliffe
2020-08-26 21:31:52 +01:00
parent b80114213d
commit bb8aeaa3d0
10 changed files with 56 additions and 21 deletions

View File

@@ -8,7 +8,7 @@
#include "blackmisc/processctrl.h"
#include "blackmisc/logmessage.h"
#include <QStringBuilder>
#include <array>
#ifdef Q_OS_WIN
@@ -36,7 +36,7 @@ namespace BlackMisc
QString command = '"' % QString(program).replace('/', '\\') % '"';
if (!arguments.isEmpty())
{
command += " \"" % arguments.join('" "').replace('/', '\\') % '"';
command += " \"" % arguments.join("\" \"").replace('/', '\\') % '"';
}
DWORD flags = 0;