mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
ntdll: Fix the return code from RtlSetDaclSecurityDescriptor when daclpresent is FALSE.
This commit is contained in:
parent
d1a3e2ede5
commit
a006b06080
@ -784,7 +784,6 @@ static void test_AccessCheck(void)
|
||||
|
||||
/* sd with no dacl present */
|
||||
ret = SetSecurityDescriptorDacl(SecurityDescriptor, FALSE, NULL, FALSE);
|
||||
todo_wine
|
||||
ok(ret, "SetSecurityDescriptorDacl failed with error %d\n", GetLastError());
|
||||
ret = AccessCheck(SecurityDescriptor, Token, KEY_READ, &Mapping,
|
||||
PrivSet, &PrivSetLen, &Access, &AccessStatus);
|
||||
|
@ -626,8 +626,9 @@ NTSTATUS WINAPI RtlSetDaclSecurityDescriptor (
|
||||
return STATUS_INVALID_SECURITY_DESCR;
|
||||
|
||||
if (!daclpresent)
|
||||
{ lpsd->Control &= ~SE_DACL_PRESENT;
|
||||
return TRUE;
|
||||
{
|
||||
lpsd->Control &= ~SE_DACL_PRESENT;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
lpsd->Control |= SE_DACL_PRESENT;
|
||||
|
Loading…
Reference in New Issue
Block a user