summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/service/win/chrome_launcher.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc
index 51f1253..c00f708 100644
--- a/cloud_print/service/win/chrome_launcher.cc
+++ b/cloud_print/service/win/chrome_launcher.cc
@@ -76,8 +76,10 @@ bool LaunchProcess(const CommandLine& cmdline,
startup_info.wShowWindow = SW_SHOW;
PROCESS_INFORMATION temp_process_info = {};
+ base::FilePath::StringType writable_cmdline_str(
+ cmdline.GetCommandLineString());
if (!CreateProcess(NULL,
- const_cast<wchar_t*>(cmdline.GetCommandLineString().c_str()), NULL, NULL,
+ &writable_cmdline_str[0], NULL, NULL,
FALSE, 0, NULL, NULL, &startup_info, &temp_process_info)) {
return false;
}