Bug 1230910 Horrible hack because ERROR_INVALID_TOKEN is not defined
MozReview-Commit-ID: L2sxlZ79EdS
--- a/security/sandbox/chromium/sandbox/win/src/acl.cc
+++ b/security/sandbox/chromium/sandbox/win/src/acl.cc
@@ -90,17 +90,17 @@ bool RevokeLogonSidFromDefaultDacl(HANDL
if (!::GetTokenInformation(token, TokenLogonSid, logon_sid, size, &size)) {
// If no logon sid, there's nothing to revoke.
if (::GetLastError() == ERROR_NOT_FOUND)
return true;
return false;
}
if (logon_sid->GroupCount < 1) {
- ::SetLastError(ERROR_INVALID_TOKEN);
+ ::SetLastError(1);//ERROR_INVALID_TOKEN);
return false;
}
return AddSidToDefaultDacl(token,
reinterpret_cast<SID*>(logon_sid->Groups[0].Sid),
REVOKE_ACCESS, 0);
}
bool AddUserSidToDefaultDacl(HANDLE token, ACCESS_MASK access) {