mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 01:34:47 +00:00
server: Don't queue zero size writes in byte mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f68bea526f
commit
e5a43fa9c8
|
@ -863,6 +863,8 @@ static int pipe_end_write( struct fd *fd, struct async *async, file_pos_t pos )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(write_end->flags & NAMED_PIPE_MESSAGE_STREAM_WRITE) && !get_req_data_size()) return 1;
|
||||||
|
|
||||||
if (!(message = mem_alloc( sizeof(*message) ))) return 0;
|
if (!(message = mem_alloc( sizeof(*message) ))) return 0;
|
||||||
message->async = (struct async *)grab_object( async );
|
message->async = (struct async *)grab_object( async );
|
||||||
message->iosb = async_get_iosb( async );
|
message->iosb = async_get_iosb( async );
|
||||||
|
|
Loading…
Reference in a new issue