[NTMARTA]

AccRewriteSetEntriesInAcl: Do not allocate an empty ACL.

svn path=/trunk/; revision=60517
This commit is contained in:
Eric Kohl 2013-10-03 20:58:47 +00:00
parent 3073548a43
commit f812408c06

View file

@ -1333,6 +1333,10 @@ AccRewriteSetEntriesInAcl(ULONG cCountOfExplicitEntries,
LocalFree((HLOCAL)pSid1);
}
/* Succeed, if no ACL needs to be allocated */
if (SizeInformation.AclBytesInUse == 0)
goto Cleanup;
/* OK, now create the new ACL */
DPRINT("Allocating %u bytes for the new ACL\n", SizeInformation.AclBytesInUse);
pNew = (PACL)LocalAlloc(LMEM_FIXED, SizeInformation.AclBytesInUse);