* advapi32.cc (InitializeAcl): Remove.
(AddAce): Remove. (FindFirstFreeAce): Remove. (GetAce): Remove. (InitializeSecurityDescriptor): Remove. (OpenProcessToken): Remove. * dcrt0.cc: Replace above functions throughout with their ntdll.dll equivalent. * fhandler_tty.cc: Ditto. * flock.cc: Ditto. * pinfo.cc: Ditto. Drop unnecessary error handling. * sec_acl.cc: Ditto. * sec_auth.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto.
This commit is contained in:
@@ -178,9 +178,10 @@ allow_others_to_sync ()
|
||||
return;
|
||||
}
|
||||
/* Set the size of the DACL correctly. */
|
||||
if (!FindFirstFreeAce (dacl, &ace))
|
||||
status = RtlFirstFreeAce (dacl, &ace);
|
||||
if (!NT_SUCCESS (status))
|
||||
{
|
||||
debug_printf ("FindFirstFreeAce: %lu", GetLastError ());
|
||||
debug_printf ("RtlFirstFreeAce: %p", status);
|
||||
return;
|
||||
}
|
||||
dacl->AclSize = (char *) ace - (char *) dacl;
|
||||
|
Reference in New Issue
Block a user