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
41e39c6a
Commit
41e39c6a
authored
Aug 08, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Improve FSCTL_PIPE_TRANSCEIVE error handling.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7038b9ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pipe.c
dlls/ntdll/tests/pipe.c
+1
-1
named_pipe.c
server/named_pipe.c
+5
-5
No files found.
dlls/ntdll/tests/pipe.c
View file @
41e39c6a
...
@@ -1301,7 +1301,7 @@ static void test_pipe_state(HANDLE pipe, BOOL is_server, DWORD state)
...
@@ -1301,7 +1301,7 @@ static void test_pipe_state(HANDLE pipe, BOOL is_server, DWORD state)
buf
,
1
,
buf
+
1
,
1
);
buf
,
1
,
buf
+
1
,
1
);
if
(
!
status
||
status
==
STATUS_PENDING
)
if
(
!
status
||
status
==
STATUS_PENDING
)
status
=
io
.
Status
;
status
=
io
.
Status
;
todo_wine
todo_wine
_if
(
expected_status
==
STATUS_PIPE_DISCONNECTED
)
ok
(
status
==
expected_status
,
ok
(
status
==
expected_status
,
"NtFsControlFile(FSCTL_PIPE_TRANSCEIVE) failed in %s state %u: %x
\n
"
,
"NtFsControlFile(FSCTL_PIPE_TRANSCEIVE) failed in %s state %u: %x
\n
"
,
is_server
?
"server"
:
"client"
,
state
,
status
);
is_server
?
"server"
:
"client"
,
state
,
status
);
...
...
server/named_pipe.c
View file @
41e39c6a
...
@@ -937,16 +937,16 @@ static int pipe_end_transceive( struct pipe_end *pipe_end, struct async *async )
...
@@ -937,16 +937,16 @@ static int pipe_end_transceive( struct pipe_end *pipe_end, struct async *async )
struct
pipe_message
*
message
;
struct
pipe_message
*
message
;
struct
iosb
*
iosb
;
struct
iosb
*
iosb
;
if
((
pipe_end
->
flags
&
(
NAMED_PIPE_MESSAGE_STREAM_WRITE
|
NAMED_PIPE_MESSAGE_STREAM_READ
))
if
(
!
pipe_end
->
connection
)
!=
(
NAMED_PIPE_MESSAGE_STREAM_WRITE
|
NAMED_PIPE_MESSAGE_STREAM_READ
))
{
{
set_error
(
STATUS_INVALID_
READ_MOD
E
);
set_error
(
STATUS_INVALID_
PIPE_STAT
E
);
return
0
;
return
0
;
}
}
if
(
!
pipe_end
->
connection
)
if
((
pipe_end
->
flags
&
(
NAMED_PIPE_MESSAGE_STREAM_WRITE
|
NAMED_PIPE_MESSAGE_STREAM_READ
))
!=
(
NAMED_PIPE_MESSAGE_STREAM_WRITE
|
NAMED_PIPE_MESSAGE_STREAM_READ
))
{
{
set_error
(
STATUS_
PIPE_BROKEN
);
set_error
(
STATUS_
INVALID_READ_MODE
);
return
0
;
return
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