| Index: remoting/host/setup/daemon_controller_delegate_win.cc
|
| diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc
|
| index 1f965cdacb670a9a3c4e254dcf95309372cae192..9ed446e99a01938bb8646790ca46627a20eab550 100644
|
| --- a/remoting/host/setup/daemon_controller_delegate_win.cc
|
| +++ b/remoting/host/setup/daemon_controller_delegate_win.cc
|
| @@ -98,8 +98,8 @@ DWORD OpenService(ScopedScHandle* service_out) {
|
| return error;
|
| }
|
|
|
| - ScopedScHandle service(
|
| - ::OpenServiceW(scmanager, kWindowsServiceName, SERVICE_QUERY_STATUS));
|
| + ScopedScHandle service(::OpenServiceW(scmanager.Get(), kWindowsServiceName,
|
| + SERVICE_QUERY_STATUS));
|
| if (!service.IsValid()) {
|
| DWORD error = GetLastError();
|
| if (error != ERROR_SERVICE_DOES_NOT_EXIST) {
|
| @@ -153,7 +153,7 @@ DaemonController::State DaemonControllerDelegateWin::GetState() {
|
| switch (error) {
|
| case ERROR_SUCCESS: {
|
| SERVICE_STATUS status;
|
| - if (::QueryServiceStatus(service, &status)) {
|
| + if (::QueryServiceStatus(service.Get(), &status)) {
|
| return ConvertToDaemonState(status.dwCurrentState);
|
| } else {
|
| PLOG(ERROR) << "Failed to query the state of the '"
|
|
|