From: Hartmut Birr Date: Tue, 7 May 2002 22:22:28 +0000 (+0000) Subject: Added handling for lpSecurityAttributes (for inheitable handles) in CreatePipe. X-Git-Tag: backups/mpw@12443~28 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=889631b2b9eea96b291e392ab5812b162e28e06c Added handling for lpSecurityAttributes (for inheitable handles) in CreatePipe. svn path=/trunk/; revision=2921 --- diff --git a/reactos/lib/kernel32/file/pipe.c b/reactos/lib/kernel32/file/pipe.c index 3270f590616..75e7f2e0646 100644 --- a/reactos/lib/kernel32/file/pipe.c +++ b/reactos/lib/kernel32/file/pipe.c @@ -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,