summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-20 19:31:10 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-20 19:32:33 +0000
commitd4d772ea090aa8c073e93243ddee9c1258661cda (patch)
tree23f1c6fe8346074a9504f3ca7c9234fd37afab90 /win8
parent069c7b15ef037351d9f5771424bb6db80e5c92e0 (diff)
downloadchromium_src-d4d772ea090aa8c073e93243ddee9c1258661cda.zip
chromium_src-d4d772ea090aa8c073e93243ddee9c1258661cda.tar.gz
chromium_src-d4d772ea090aa8c073e93243ddee9c1258661cda.tar.bz2
Don't pass const strings to CreateProcess.
The documentation says that CreateProcess() can modify its second parameter in UNICODE builds. BUG=396705 R=scottmg@chromium.org, vitalybuka@chromium.org TBR=cpu Review URL: https://codereview.chromium.org/487303004 Cr-Commit-Position: refs/heads/master@{#290890} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8')
-rw-r--r--win8/delegate_execute/command_execute_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index f6ce0f1..b62319a 100644
--- a/win8/delegate_execute/command_execute_impl.cc
+++ b/win8/delegate_execute/command_execute_impl.cc
@@ -399,7 +399,7 @@ HRESULT CommandExecuteImpl::LaunchDesktopChrome() {
PROCESS_INFORMATION temp_process_info = {};
BOOL ret = CreateProcess(chrome_exe_.value().c_str(),
- const_cast<LPWSTR>(command_line.c_str()),
+ &command_line[0],
NULL, NULL, FALSE, 0, NULL, NULL, &start_info_,
&temp_process_info);
if (ret) {