extensions: Fix path quotes on Windows (#3965)

This commit is contained in:
Teddy Reed 2017-11-27 07:17:43 -08:00 committed by GitHub
parent bfb4061f39
commit ee17e7e6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ std::shared_ptr<PlatformProcess> PlatformProcess::launchExtension(
// To prevent errant double quotes from altering the intended arguments for // To prevent errant double quotes from altering the intended arguments for
// argv, we strip them out completely. // argv, we strip them out completely.
std::stringstream argv_stream; std::stringstream argv_stream;
argv_stream << boost::replace_all_copy(exec_path, "\"", "") << "\" "; argv_stream << "\"" << boost::replace_all_copy(exec_path, "\"", "") << "\" ";
if (verbose) { if (verbose) {
argv_stream << "--verbose "; argv_stream << "--verbose ";
} }