16 Jun
2005
16 Jun
'05
11:13 a.m.
James Hawkins <truiken(a)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(a)winehq.org