Re: ntdll: Implement RtlCopySecurityDescriptor
16 Jun
2005
16 Jun
'05
10: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
7485
Age (days ago)
7485
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard