Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: base/process_util_win.cc

Issue 10918255: The Windows portion of Native Messagaing (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Less Sleepy Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/process_util_win.cc
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index e88ae98e6bfeca7feddb095764956c894447ced9..23cddb160a48ca08f3331e0f05e4188a718f44b5 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -306,6 +306,15 @@ bool LaunchProcess(const string16& cmdline,
startup_info.dwFlags = STARTF_USESHOWWINDOW;
startup_info.wShowWindow = options.start_hidden ? SW_HIDE : SW_SHOW;
+ if (options.stdin_handle != kNullProcessHandle) {
+ startup_info.dwFlags |= STARTF_USESTDHANDLES;
rvargas (doing something else) 2012/11/29 01:19:23 Unused handles should be set to INVALID_HANDLE_VAL
Sergey Ulanov 2012/12/01 01:23:00 Done in crrev.com/11419267
+ startup_info.hStdInput = options.stdin_handle;
+ }
+ if (options.stdout_handle != kNullProcessHandle) {
+ startup_info.dwFlags |= STARTF_USESTDHANDLES;
+ startup_info.hStdOutput = options.stdout_handle;
+ }
+
DWORD flags = 0;
if (options.job_handle) {

Powered by Google App Engine
This is Rietveld 408576698