mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:43:08 +00:00
Misc addendum to CORE-14271 (#1529)
* [ADVAPI32] Simplify RtlCreateUnicodeStringFromAsciiz() return value check RtlCreateUnicodeStringFromAsciiz() returns a BOOLEAN, not a BOOL. No functional change. Addendum to CORE-14271 * [USER32] Simplify RtlCreateUnicodeStringFromAsciiz() return value check RtlCreateUnicodeStringFromAsciiz() returns a BOOLEAN, not a UINT. Also, add a FIXME. No functional change. Addendum to CORE-14271 * [USER32] Simplify RegisterClipboardFormatA/W() a bit No functional change. * [UDFS] Simplify SeSinglePrivilegeCheck() return value check No functional change. Addendum to CORE-14271
This commit is contained in:
parent
77ac92d817
commit
38db074491
3 changed files with 15 additions and 21 deletions
|
@ -934,9 +934,9 @@ UDFCheckAccessRights(
|
|||
)
|
||||
{
|
||||
NTSTATUS RC;
|
||||
BOOLEAN SecurityCheck = TRUE;
|
||||
BOOLEAN ROCheck = FALSE;
|
||||
#ifdef UDF_ENABLE_SECURITY
|
||||
BOOLEAN SecurityCheck;
|
||||
PSECURITY_DESCRIPTOR SecDesc;
|
||||
SECURITY_SUBJECT_CONTEXT SubjectContext;
|
||||
ACCESS_MASK LocalAccessMask;
|
||||
|
@ -1011,8 +1011,7 @@ treat_as_ro:
|
|||
} else
|
||||
#endif //UDF_ENABLE_SECURITY
|
||||
if(DesiredAccess & ACCESS_SYSTEM_SECURITY) {
|
||||
SecurityCheck = SeSinglePrivilegeCheck(SeExports->SeSecurityPrivilege, UserMode);
|
||||
if(!SecurityCheck)
|
||||
if (!SeSinglePrivilegeCheck(SeExports->SeSecurityPrivilege, UserMode))
|
||||
return STATUS_ACCESS_DENIED;
|
||||
Ccb->PreviouslyGrantedAccess |= ACCESS_SYSTEM_SECURITY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue