Browse Source

Fix bridges on windows, due to missing String::quoted

tags/1.9.8
falkTX 6 years ago
parent
commit
5d8e216c30
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      source/modules/water/threads/ChildProcess.cpp

+ 5
- 4
source/modules/water/threads/ChildProcess.cpp View File

@@ -346,18 +346,19 @@ bool ChildProcess::start (const StringArray& args, int streamFlags)
{
String escaped;
for (int i = 0; i < args.size(); ++i)
for (int i = 0, size = args.size(); i < size; ++i)
{
String arg (args[i]);
#if 0 // FIXME
// If there are spaces, surround it with quotes. If there are quotes,
// replace them with \" so that CommandLineToArgv will correctly parse them.
if (arg.containsAnyOf ("\" "))
arg = arg.replace ("\"", "\\\"").quoted();
#endif
escaped << arg << ' ';
escaped << arg;
if (i+1 < size)
escaped << ' ';
}
return start (escaped.trim(), streamFlags);


Loading…
Cancel
Save