fix pipe create flags traslation

svn path=/trunk/; revision=8775
This commit is contained in:
Gunnar Dalsnes 2004-03-17 15:00:39 +00:00
parent f396c8299f
commit 31ac5158a6

View file

@ -1,4 +1,4 @@
/* $Id: npipe.c,v 1.17 2004/01/23 21:16:03 ekohl Exp $ /* $Id: npipe.c,v 1.18 2004/03/17 15:00:39 gdalsnes Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -110,9 +110,9 @@ CreateNamedPipeW(LPCWSTR lpName,
{ {
CreateOptions = CreateOptions | FILE_WRITE_THROUGH; CreateOptions = CreateOptions | FILE_WRITE_THROUGH;
} }
if (dwOpenMode & FILE_FLAG_OVERLAPPED) if (!(dwOpenMode & FILE_FLAG_OVERLAPPED))
{ {
CreateOptions = CreateOptions | FILE_SYNCHRONOUS_IO_ALERT; CreateOptions = CreateOptions | FILE_SYNCHRONOUS_IO_NONALERT;
} }
if (dwOpenMode & PIPE_ACCESS_DUPLEX) if (dwOpenMode & PIPE_ACCESS_DUPLEX)
{ {