From 9fd341c9aeb02f43b882af018f4eabbae091facf Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Fri, 1 Oct 2004 01:28:56 +0000 Subject: [PATCH] Zero the new descriptor so that the Dacl, Sacl etc pointers will be zeroed if not initialized. cygwin was exercising this. svn path=/trunk/; revision=11138 --- reactos/ntoskrnl/se/semgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/se/semgr.c b/reactos/ntoskrnl/se/semgr.c index 80ee48ed33e..54f9a6197a2 100644 --- a/reactos/ntoskrnl/se/semgr.c +++ b/reactos/ntoskrnl/se/semgr.c @@ -1,4 +1,4 @@ -/* $Id: semgr.c,v 1.46 2004/09/25 08:49:06 gvg Exp $ +/* $Id: semgr.c,v 1.47 2004/10/01 01:28:56 arty Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -502,6 +502,8 @@ SeAssignSecurity(PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, Descriptor = ExAllocatePool(NonPagedPool, Length); + RtlZeroMemory( Descriptor, Length ); + if (Descriptor == NULL) { DPRINT1("ExAlloctePool() failed\n");