From 465156f38326930139dae6972c2af8ab2464c674 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 22 Jan 2006 03:53:02 +0000 Subject: [PATCH] fixed allocating the memory for the security descriptor svn path=/trunk/; revision=20970 --- reactos/lib/ntmarta/ntmarta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/ntmarta/ntmarta.c b/reactos/lib/ntmarta/ntmarta.c index 72d00b556c5..fef34e4b270 100644 --- a/reactos/lib/ntmarta/ntmarta.c +++ b/reactos/lib/ntmarta/ntmarta.c @@ -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);