Author: ekohl Date: Thu Oct 3 20:58:47 2013 New Revision: 60517
URL: http://svn.reactos.org/svn/reactos?rev=60517&view=rev Log: [NTMARTA] AccRewriteSetEntriesInAcl: Do not allocate an empty ACL.
Modified: trunk/reactos/dll/win32/ntmarta/ntmarta.c
Modified: trunk/reactos/dll/win32/ntmarta/ntmarta.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ntmarta/ntmarta.c... ============================================================================== --- trunk/reactos/dll/win32/ntmarta/ntmarta.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ntmarta/ntmarta.c [iso-8859-1] Thu Oct 3 20:58:47 2013 @@ -1333,6 +1333,10 @@ 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);