mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 00:40:31 +00:00
Added handling for lpSecurityAttributes (for inheitable handles) in CreatePipe.
svn path=/trunk/; revision=2921
This commit is contained in:
parent
652f529412
commit
889631b2b9
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: pipe.c,v 1.4 2000/09/27 01:24:37 ekohl Exp $
|
||||
/* $Id: pipe.c,v 1.5 2002/05/07 22:22:28 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -56,6 +56,13 @@ BOOL STDCALL CreatePipe(PHANDLE hReadPipe,
|
|||
OBJ_CASE_INSENSITIVE,
|
||||
NULL,
|
||||
SecurityDescriptor);
|
||||
if (lpPipeAttributes)
|
||||
{
|
||||
if(lpPipeAttributes->bInheritHandle)
|
||||
ObjectAttributes.Attributes |= OBJ_INHERIT;
|
||||
if (lpPipeAttributes->lpSecurityDescriptor)
|
||||
ObjectAttributes.SecurityDescriptor = lpPipeAttributes->lpSecurityDescriptor;
|
||||
}
|
||||
|
||||
Status = NtCreateNamedPipeFile(&ReadPipeHandle,
|
||||
FILE_GENERIC_READ,
|
||||
|
|
Loading…
Reference in a new issue