From 2c454f89cf62c792a8faf208cb6b931498097b66 Mon Sep 17 00:00:00 2001 From: Jens Frederich Date: Mon, 11 Apr 2016 08:34:25 +0200 Subject: [PATCH] windows: leave exe_ empty if cmd_line_ is set Use exe_ or cmd_line_ otherwise the CreateProcess executable search strategy isn't used. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx. --- boost/process/windows/initializers/set_args.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/boost/process/windows/initializers/set_args.hpp b/boost/process/windows/initializers/set_args.hpp index 4b3c5b6..7d45241 100644 --- a/boost/process/windows/initializers/set_args.hpp +++ b/boost/process/windows/initializers/set_args.hpp @@ -36,7 +36,6 @@ class set_args_ : public initializer_base ConstIterator end = boost::const_end(args); if (it != end) { - exe_ = *it; OStringStream os; for (; it != end; ++it) {