mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
Improve launchImpl in Process_WIN32.cpp (#1799)
This commit is contained in:
parent
1e4ee012a2
commit
b59d74cfb5
@ -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)
|
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)
|
for (ArgsImpl::const_iterator it = args.begin(); it != args.end(); ++it)
|
||||||
{
|
{
|
||||||
commandLine.append(" ");
|
commandLine.append(" ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user