Commit 759d76ae authored by Adam Martinson's avatar Adam Martinson Committed by Alexandre Julliard

ntdll: Properly set flags in NtCreateNamedPipe().

parent 8a00eb86
...@@ -2797,9 +2797,9 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access, ...@@ -2797,9 +2797,9 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access,
req->options = options; req->options = options;
req->sharing = sharing; req->sharing = sharing;
req->flags = req->flags =
(pipe_type) ? NAMED_PIPE_MESSAGE_STREAM_WRITE : 0 | (pipe_type ? NAMED_PIPE_MESSAGE_STREAM_WRITE : 0) |
(read_mode) ? NAMED_PIPE_MESSAGE_STREAM_READ : 0 | (read_mode ? NAMED_PIPE_MESSAGE_STREAM_READ : 0) |
(completion_mode) ? NAMED_PIPE_NONBLOCKING_MODE : 0; (completion_mode ? NAMED_PIPE_NONBLOCKING_MODE : 0);
req->maxinstances = max_inst; req->maxinstances = max_inst;
req->outsize = outbound_quota; req->outsize = outbound_quota;
req->insize = inbound_quota; req->insize = inbound_quota;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment