mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
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:
parent
f45c8f618d
commit
9fd341c9ae
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue