ntdll: Implement RtlCopySecurityDescriptor
Alexandre Julliard
julliard at winehq.org
Thu Jun 16 05:13:50 CDT 2005
James Hawkins <truiken at gmail.com> writes:
> +/******************************************************************************
> + * RtlCopyAcl [NTDLL.@]
> + */
> +BOOLEAN WINAPI RtlCopyAcl(DWORD nDestinationAclLength, PACL pDestinationAcl, PACL pSourceAcl)
> +{
> + DWORD size = ((ACL *)pSourceAcl)->AclSize;
> +
> + if (!pSourceAcl || !RtlValidAcl(pSourceAcl) || nDestinationAclLength < size)
> + return FALSE;
There isn't much point in checking for a NULL pSourceAcl when you have
already dereferenced it ;-)
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list