This commit is contained in:
DavidXanatos 2021-07-30 13:04:13 +02:00
parent 0972a1a3da
commit 4626a5de26
1 changed files with 0 additions and 3 deletions

View File

@ -1332,9 +1332,6 @@ NTSTATUS Secure_RtlCheckTokenMembershipEx(
0x20, 2, 0, 0 // SubAuthority 2 - DOMAIN_ALIAS_RID_ADMINS
};
typedef BOOL (*P_EqualSid)(PSID pSid1, PSID pSid2);
extern P_EqualSid __sys_RtlEqualSid;
if (Secure_FakeAdmin && __sys_RtlEqualSid && __sys_RtlEqualSid(sidToCheck, AdministratorsSid)) {
if (isMember) *isMember = TRUE;
return STATUS_SUCCESS;