Index: chrome/installer/setup/setup_util.cc |
diff --git a/chrome/installer/setup/setup_util.cc b/chrome/installer/setup/setup_util.cc |
index 3a7bde7a362b529084d7c12b9cc5f80064758be4..3e0a3d9dc61c0daa830a70c90f561ebb4978105b 100644 |
--- a/chrome/installer/setup/setup_util.cc |
+++ b/chrome/installer/setup/setup_util.cc |
@@ -479,7 +479,8 @@ ScopedTokenPrivilege::ScopedTokenPrivilege(const wchar_t* privilege_name) |
tp.Privileges[0].Luid = privilege_luid; |
tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; |
DWORD return_length; |
- if (!::AdjustTokenPrivileges(token_, FALSE, &tp, sizeof(TOKEN_PRIVILEGES), |
+ if (!::AdjustTokenPrivileges(token_.Get(), FALSE, &tp, |
+ sizeof(TOKEN_PRIVILEGES), |
&previous_privileges_, &return_length)) { |
token_.Close(); |
return; |
@@ -490,7 +491,7 @@ ScopedTokenPrivilege::ScopedTokenPrivilege(const wchar_t* privilege_name) |
ScopedTokenPrivilege::~ScopedTokenPrivilege() { |
if (is_enabled_ && previous_privileges_.PrivilegeCount != 0) { |
- ::AdjustTokenPrivileges(token_, FALSE, &previous_privileges_, |
+ ::AdjustTokenPrivileges(token_.Get(), FALSE, &previous_privileges_, |
sizeof(TOKEN_PRIVILEGES), NULL, NULL); |
} |
} |