ntdll: Properly set flags in NtCreateNamedPipe().

This commit is contained in:
Adam Martinson 2011-12-11 13:10:32 -06:00 committed by Alexandre Julliard
parent 8a00eb8609
commit 759d76ae23
1 changed files with 3 additions and 3 deletions

View File

@ -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;