Commit a006b060 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ntdll: Fix the return code from RtlSetDaclSecurityDescriptor when daclpresent is FALSE.

parent d1a3e2ed
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment