Improve launchImpl in Process_WIN32.cpp (#1799)

This commit is contained in:
komainu8 2017-07-17 21:11:43 +09:00 committed by Aleksandar Fabijanic
parent 1e4ee012a2
commit b59d74cfb5

View File

@ -163,7 +163,7 @@ static std::string escapeArg(const std::string& arg)
ProcessHandleImpl* ProcessImpl::launchImpl(const std::string& command, const ArgsImpl& args, const std::string& initialDirectory, Pipe* inPipe, Pipe* outPipe, Pipe* errPipe, const EnvImpl& env)
{
std::string commandLine = command;
std::string commandLine = escapeArg(command);
for (ArgsImpl::const_iterator it = args.begin(); it != args.end(); ++it)
{
commandLine.append(" ");