James Hawkins truiken@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 ;-)