Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bded6984
Commit
bded6984
authored
Sep 26, 2011
by
Bernhard Loos
Committed by
Alexandre Julliard
Sep 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Sharing 0 is not allowed for named pipes.
parent
5098b131
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
pipe.c
dlls/ntdll/tests/pipe.c
+1
-1
named_pipe.c
server/named_pipe.c
+6
-0
No files found.
dlls/ntdll/tests/pipe.c
View file @
bded6984
...
...
@@ -150,7 +150,7 @@ static void test_create_invalid(void)
/* create a pipe with sharing = 0 */
res
=
pNtCreateNamedPipeFile
(
&
handle
,
FILE_READ_ATTRIBUTES
|
SYNCHRONIZE
,
&
attr
,
&
iosb
,
0
,
2
/*FILE_CREATE*/
,
0
,
1
,
0
,
0
,
0xFFFFFFFF
,
500
,
500
,
&
timeout
);
todo_wine
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"NtCreateNamedPipeFile returned %x
\n
"
,
res
);
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"NtCreateNamedPipeFile returned %x
\n
"
,
res
);
if
(
!
res
)
CloseHandle
(
handle
);
...
...
server/named_pipe.c
View file @
bded6984
...
...
@@ -940,6 +940,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
;
}
reply
->
handle
=
0
;
get_req_unicode_str
(
&
name
);
if
(
req
->
rootdir
&&
!
(
root
=
get_directory_obj
(
current
->
process
,
req
->
rootdir
,
0
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment