| Index: sandbox/win/src/restricted_token_utils.cc
|
| diff --git a/sandbox/win/src/restricted_token_utils.cc b/sandbox/win/src/restricted_token_utils.cc
|
| index 7f70e88e8fd6e2ffa13b3547a4de2305b2d39ac5..4a3d05c639bcd5acbfff79ce2a96df946fc56ce7 100644
|
| --- a/sandbox/win/src/restricted_token_utils.cc
|
| +++ b/sandbox/win/src/restricted_token_utils.cc
|
| @@ -218,9 +218,10 @@ DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level) {
|
| DWORD size = sizeof(TOKEN_MANDATORY_LABEL) + ::GetLengthSid(integrity_sid);
|
| BOOL result = ::SetTokenInformation(token, TokenIntegrityLevel, &label,
|
| size);
|
| + auto last_error = ::GetLastError();
|
| ::LocalFree(integrity_sid);
|
|
|
| - return result ? ERROR_SUCCESS : ::GetLastError();
|
| + return result ? ERROR_SUCCESS : last_error;
|
| }
|
|
|
| DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level) {
|
|
|