Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
5098b131
Commit
5098b131
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: Only the sharing parameter of two instances of the same pipe have to match.
parent
039bacb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
pipe.c
dlls/kernel32/tests/pipe.c
+20
-2
named_pipe.c
server/named_pipe.c
+1
-3
No files found.
dlls/kernel32/tests/pipe.c
View file @
5098b131
...
...
@@ -374,7 +374,7 @@ static void test_CreateNamedPipe_instances_must_match(void)
ok
(
hnp
!=
INVALID_HANDLE_VALUE
,
"CreateNamedPipe failed
\n
"
);
hnp2
=
CreateNamedPipe
(
PIPENAME
,
PIPE_ACCESS_INBOUND
,
PIPE_TYPE_BYTE
|
PIPE_WAIT
,
/* nMaxInstances */
1
,
/* nMaxInstances */
2
,
/* nOutBufSize */
1024
,
/* nInBufSize */
1024
,
/* nDefaultWait */
NMPWAIT_USE_DEFAULT_WAIT
,
...
...
@@ -384,7 +384,25 @@ static void test_CreateNamedPipe_instances_must_match(void)
ok
(
CloseHandle
(
hnp
),
"CloseHandle
\n
"
);
/* etc, etc */
/* check everything else */
hnp
=
CreateNamedPipe
(
PIPENAME
,
PIPE_ACCESS_DUPLEX
,
PIPE_TYPE_BYTE
|
PIPE_WAIT
,
/* nMaxInstances */
4
,
/* nOutBufSize */
1024
,
/* nInBufSize */
1024
,
/* nDefaultWait */
NMPWAIT_USE_DEFAULT_WAIT
,
/* lpSecurityAttrib */
NULL
);
ok
(
hnp
!=
INVALID_HANDLE_VALUE
,
"CreateNamedPipe failed
\n
"
);
hnp2
=
CreateNamedPipe
(
PIPENAME
,
PIPE_ACCESS_DUPLEX
,
PIPE_TYPE_MESSAGE
,
/* nMaxInstances */
3
,
/* nOutBufSize */
102
,
/* nInBufSize */
24
,
/* nDefaultWait */
1234
,
/* lpSecurityAttrib */
NULL
);
ok
(
hnp2
!=
INVALID_HANDLE_VALUE
,
"CreateNamedPipe failed
\n
"
);
ok
(
CloseHandle
(
hnp
),
"CloseHandle
\n
"
);
ok
(
CloseHandle
(
hnp2
),
"CloseHandle
\n
"
);
}
/** implementation of alarm() */
...
...
server/named_pipe.c
View file @
5098b131
...
...
@@ -971,9 +971,7 @@ DECL_HANDLER(create_named_pipe)
release_object
(
pipe
);
return
;
}
if
((
pipe
->
maxinstances
!=
req
->
maxinstances
)
||
(
pipe
->
timeout
!=
req
->
timeout
)
||
(
pipe
->
flags
!=
req
->
flags
))
if
(
pipe
->
sharing
!=
req
->
sharing
)
{
set_error
(
STATUS_ACCESS_DENIED
);
release_object
(
pipe
);
...
...
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