mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
fixed allocating the memory for the security descriptor
svn path=/trunk/; revision=20970
This commit is contained in:
parent
c93b3bf869
commit
465156f383
|
@ -62,7 +62,7 @@ AccRewriteGetHandleRights(HANDLE handle,
|
|||
/* allocate a buffer large enough to hold the
|
||||
security descriptor we need to return */
|
||||
SDSize += 0x100;
|
||||
if (pSD != NULL)
|
||||
if (pSD == NULL)
|
||||
{
|
||||
pSD = LocalAlloc(LMEM_FIXED,
|
||||
(SIZE_T)SDSize);
|
||||
|
|
Loading…
Reference in a new issue