| Index: remoting/host/win/wts_session_process_delegate.cc
|
| diff --git a/remoting/host/win/wts_session_process_delegate.cc b/remoting/host/win/wts_session_process_delegate.cc
|
| index 0781649e6c0a3be4646fe7236817ab8f03834b61..8cb7325a24600d7a80092f0d1b2332cae63ef645 100644
|
| --- a/remoting/host/win/wts_session_process_delegate.cc
|
| +++ b/remoting/host/win/wts_session_process_delegate.cc
|
| @@ -513,11 +513,11 @@
|
| // query information about the process and duplicate handles.
|
| DWORD desired_access =
|
| SYNCHRONIZE | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION;
|
| - HANDLE temp_handle;
|
| + ScopedHandle limited_handle;
|
| if (!DuplicateHandle(GetCurrentProcess(),
|
| worker_process_,
|
| GetCurrentProcess(),
|
| - &temp_handle,
|
| + limited_handle.Receive(),
|
| desired_access,
|
| FALSE,
|
| 0)) {
|
| @@ -525,7 +525,6 @@
|
| ReportFatalError();
|
| return;
|
| }
|
| - ScopedHandle limited_handle(temp_handle);
|
|
|
| event_handler_->OnProcessLaunched(limited_handle.Pass());
|
| }
|
|
|