Index: base/win/startup_information_unittest.cc |
=================================================================== |
--- base/win/startup_information_unittest.cc (revision 237598) |
+++ base/win/startup_information_unittest.cc (working copy) |
@@ -38,6 +38,7 @@ |
if (base::win::GetVersion() < base::win::VERSION_VISTA) |
return; |
+ base::win::ScopedProcessInformation process_info; |
base::win::StartupInformation startup_info; |
HANDLE section = ::CreateFileMappingW(INVALID_HANDLE_VALUE, NULL, |
@@ -64,13 +65,10 @@ |
std::wstring cmd_line = |
this->MakeCmdLine("FireInheritedEvents", false).GetCommandLineString(); |
- PROCESS_INFORMATION temp_process_info = {}; |
ASSERT_TRUE(::CreateProcess(NULL, const_cast<wchar_t*>(cmd_line.c_str()), |
NULL, NULL, true, EXTENDED_STARTUPINFO_PRESENT, |
NULL, NULL, startup_info.startup_info(), |
- &temp_process_info)) << ::GetLastError(); |
- base::win::ScopedProcessInformation process_info(temp_process_info); |
- |
+ process_info.Receive())) << ::GetLastError(); |
// Only the first event should be signalled |
EXPECT_EQ(WAIT_OBJECT_0, ::WaitForMultipleObjects(2, events, false, |
4000)); |