mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:36:23 +00:00
[NTMARTA]
AccRewriteSetEntriesInAcl: Do not allocate an empty ACL. svn path=/trunk/; revision=60517
This commit is contained in:
parent
3073548a43
commit
f812408c06
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue