| Index: tools/gn/function_exec_script.cc
|
| ===================================================================
|
| --- tools/gn/function_exec_script.cc (revision 237598)
|
| +++ tools/gn/function_exec_script.cc (working copy)
|
| @@ -85,7 +85,8 @@
|
|
|
| base::FilePath::StringType cmdline_str(cmdline.GetCommandLineString());
|
|
|
| - STARTUPINFO start_info = {};
|
| + base::win::ScopedProcessInformation proc_info;
|
| + STARTUPINFO start_info = { 0 };
|
|
|
| start_info.cb = sizeof(STARTUPINFO);
|
| start_info.hStdOutput = out_write;
|
| @@ -97,17 +98,15 @@
|
| start_info.dwFlags |= STARTF_USESTDHANDLES;
|
|
|
| // Create the child process.
|
| - PROCESS_INFORMATION temp_process_info = {};
|
| if (!CreateProcess(NULL,
|
| &cmdline_str[0],
|
| NULL, NULL,
|
| TRUE, // Handles are inherited.
|
| 0, NULL,
|
| startup_dir.value().c_str(),
|
| - &start_info, &temp_process_info)) {
|
| + &start_info, proc_info.Receive())) {
|
| return false;
|
| }
|
| - base::win::ScopedProcessInformation proc_info(temp_process_info);
|
|
|
| // Close our writing end of pipes now. Otherwise later read would not be able
|
| // to detect end of child's output.
|
|
|