[PATCH 3/6] server: sharing 0 is not allowed for named pipes
Nikolay Sivov
bunglehead at gmail.com
Thu Aug 25 02:19:18 CDT 2011
On 8/25/2011 08:49, Bernhard Loos wrote:
> ---
> dlls/ntdll/tests/pipe.c | 2 +-
> server/named_pipe.c | 6 ++++++
> 2 files changed, 7 insertions(+), 1 deletions(-)
> @@ -964,6 +964,12 @@ DECL_HANDLER(create_named_pipe)
> struct unicode_str name;
> struct directory *root = NULL;
>
> + if (!req->sharing || (req->sharing& ~(FILE_SHARE_READ | FILE_SHARE_WRITE)))
> + {
> + set_error( STATUS_INVALID_PARAMETER );
> + return;
> + }
> +
What's a point of doing that at server side?
More information about the wine-devel
mailing list