Adam Martinson : ntdll: Properly set flags in NtCreateNamedPipe().

Alexandre Julliard julliard at winehq.org
Thu Dec 15 12:47:21 CST 2011


Module: wine
Branch: master
Commit: 759d76ae23ef2916af6ebb13ab9219c357af17ba
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=759d76ae23ef2916af6ebb13ab9219c357af17ba

Author: Adam Martinson <adam.r.martinson at gmail.com>
Date:   Sun Dec 11 13:10:32 2011 -0600

ntdll: Properly set flags in NtCreateNamedPipe().

---

 dlls/ntdll/file.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 744e09f..d9be9fb 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -2797,9 +2797,9 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access,
         req->options = options;
         req->sharing = sharing;
         req->flags = 
-            (pipe_type) ? NAMED_PIPE_MESSAGE_STREAM_WRITE : 0 |
-            (read_mode) ? NAMED_PIPE_MESSAGE_STREAM_READ  : 0 |
-            (completion_mode) ? NAMED_PIPE_NONBLOCKING_MODE  : 0;
+            (pipe_type ? NAMED_PIPE_MESSAGE_STREAM_WRITE   : 0) |
+            (read_mode ? NAMED_PIPE_MESSAGE_STREAM_READ    : 0) |
+            (completion_mode ? NAMED_PIPE_NONBLOCKING_MODE : 0);
         req->maxinstances = max_inst;
         req->outsize = outbound_quota;
         req->insize  = inbound_quota;




More information about the wine-cvs mailing list