diff options
author | rvargas <rvargas@chromium.org> | 2014-09-24 18:35:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-25 01:35:52 +0000 |
commit | d7743bab4d428ef413320f9e71ed08b62255573b (patch) | |
tree | f08b5108358dee383e7ba0c3bbc243a175920b43 /chrome/installer/gcapi | |
parent | ae685fa448164fef86b0b97f519ac2f81cc8b310 (diff) | |
download | chromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.zip chromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.tar.gz chromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.tar.bz2 |
Remove implicit HANDLE conversions from chrome.
BUG=416722
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/606473002
Cr-Commit-Position: refs/heads/master@{#296613}
Diffstat (limited to 'chrome/installer/gcapi')
-rw-r--r-- | chrome/installer/gcapi/gcapi.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/gcapi/gcapi.cc b/chrome/installer/gcapi/gcapi.cc index ce0d22a..ce03d85 100644 --- a/chrome/installer/gcapi/gcapi.cc +++ b/chrome/installer/gcapi/gcapi.cc @@ -478,7 +478,8 @@ BOOL __stdcall LaunchGoogleChrome() { if (process_handle.IsValid()) { HANDLE process_token = NULL; HANDLE user_token = NULL; - if (::OpenProcessToken(process_handle, TOKEN_DUPLICATE | TOKEN_QUERY, + if (::OpenProcessToken(process_handle.Get(), + TOKEN_DUPLICATE | TOKEN_QUERY, &process_token) && ::DuplicateTokenEx(process_token, TOKEN_IMPERSONATE | TOKEN_QUERY | |