mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +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);
|
LocalFree((HLOCAL)pSid1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Succeed, if no ACL needs to be allocated */
|
||||||
|
if (SizeInformation.AclBytesInUse == 0)
|
||||||
|
goto Cleanup;
|
||||||
|
|
||||||
/* OK, now create the new ACL */
|
/* OK, now create the new ACL */
|
||||||
DPRINT("Allocating %u bytes for the new ACL\n", SizeInformation.AclBytesInUse);
|
DPRINT("Allocating %u bytes for the new ACL\n", SizeInformation.AclBytesInUse);
|
||||||
pNew = (PACL)LocalAlloc(LMEM_FIXED, SizeInformation.AclBytesInUse);
|
pNew = (PACL)LocalAlloc(LMEM_FIXED, SizeInformation.AclBytesInUse);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue