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
This commit is contained in:
Art Yerkes 2004-10-01 01:28:56 +00:00
parent f45c8f618d
commit 9fd341c9ae

View file

@ -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");