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
bb9c4198
Commit
bb9c4198
authored
Mar 28, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't change iosb without associated async in wake_message.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f547e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
named_pipe.c
server/named_pipe.c
+5
-6
No files found.
server/named_pipe.c
View file @
bb9c4198
...
...
@@ -356,13 +356,12 @@ static void wake_message( struct pipe_message *message )
struct
async
*
async
=
message
->
async
;
message
->
async
=
NULL
;
if
(
!
async
)
return
;
message
->
iosb
->
status
=
STATUS_SUCCESS
;
message
->
iosb
->
result
=
message
->
iosb
->
in_size
;
if
(
async
)
{
async_terminate
(
async
,
message
->
iosb
->
result
?
STATUS_ALERTED
:
STATUS_SUCCESS
);
release_object
(
async
);
}
async_terminate
(
async
,
message
->
iosb
->
result
?
STATUS_ALERTED
:
STATUS_SUCCESS
);
release_object
(
async
);
}
static
void
free_message
(
struct
pipe_message
*
message
)
...
...
@@ -768,7 +767,7 @@ static void reselect_write_queue( struct pipe_end *pipe_end )
else
{
avail
+=
message
->
iosb
->
in_size
-
message
->
read_pos
;
if
(
message
->
iosb
->
status
==
STATUS_PENDING
&&
(
avail
<=
reader
->
buffer_size
||
!
message
->
iosb
->
in_size
))
if
(
message
->
async
&&
(
avail
<=
reader
->
buffer_size
||
!
message
->
iosb
->
in_size
))
wake_message
(
message
);
}
}
...
...
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