fixed allocating the memory for the security descriptor

svn path=/trunk/; revision=20970
This commit is contained in:
Thomas Bluemel 2006-01-22 03:53:02 +00:00
parent c93b3bf869
commit 465156f383

View file

@ -62,7 +62,7 @@ AccRewriteGetHandleRights(HANDLE handle,
/* allocate a buffer large enough to hold the /* allocate a buffer large enough to hold the
security descriptor we need to return */ security descriptor we need to return */
SDSize += 0x100; SDSize += 0x100;
if (pSD != NULL) if (pSD == NULL)
{ {
pSD = LocalAlloc(LMEM_FIXED, pSD = LocalAlloc(LMEM_FIXED,
(SIZE_T)SDSize); (SIZE_T)SDSize);