Index: remoting/host/win/unprivileged_process_delegate.cc |
diff --git a/remoting/host/win/unprivileged_process_delegate.cc b/remoting/host/win/unprivileged_process_delegate.cc |
index fa1d1d2eab489ea386dbcf9e54b51fdde76932e1..f662ce5b68f13d34b833420d82531ab5a538a513 100644 |
--- a/remoting/host/win/unprivileged_process_delegate.cc |
+++ b/remoting/host/win/unprivileged_process_delegate.cc |
@@ -100,11 +100,9 @@ bool CreateRestrictedToken(ScopedHandle* token_out) { |
} |
// Return the resulting token. |
- if (restricted_token.GetRestrictedTokenHandle(&temp_handle) == |
- ERROR_SUCCESS) { |
- token_out->Set(temp_handle); |
+ if (restricted_token.GetRestrictedToken(token_out) == ERROR_SUCCESS) |
return true; |
- } |
+ |
return false; |
} |