CreatePipe(): Don't open client side in passive mode.
Modified: trunk/reactos/lib/kernel32/file/pipe.c
_____
Modified: trunk/reactos/lib/kernel32/file/pipe.c
--- trunk/reactos/lib/kernel32/file/pipe.c 2005-01-01 13:35:12 UTC
(rev 12701)
+++ trunk/reactos/lib/kernel32/file/pipe.c 2005-01-01 14:06:39 UTC
(rev 12702)
@@ -1,4 +1,4 @@
-/* $Id: pipe.c,v 1.12 2004/10/08 23:12:29 weiden Exp $
+/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@ -37,7 +37,8 @@
NTSTATUS Status;
HANDLE ReadPipeHandle;
HANDLE WritePipeHandle;
- ULONG PipeId, Attributes;
+ ULONG PipeId;
+ ULONG Attributes;
PSECURITY_DESCRIPTOR SecurityDescriptor = NULL;
DefaultTimeout.QuadPart = 300000000; /* 30 seconds */
@@ -54,8 +55,8 @@
if (lpPipeAttributes)
{
SecurityDescriptor = lpPipeAttributes->lpSecurityDescriptor;
- if(lpPipeAttributes->bInheritHandle)
- Attributes |= OBJ_INHERIT;
+ if (lpPipeAttributes->bInheritHandle)
+ Attributes |= OBJ_INHERIT;
}
InitializeObjectAttributes(&ObjectAttributes,
@@ -88,7 +89,7 @@
FILE_GENERIC_WRITE,
&ObjectAttributes,
&StatusBlock,
- FILE_SHARE_READ | FILE_SHARE_WRITE,
+ 0,
FILE_SYNCHRONOUS_IO_NONALERT |
FILE_NON_DIRECTORY_FILE);
if (!NT_SUCCESS(Status))
{
Show replies by date