Jacek Caban : server: Don't queue zero size writes in byte mode.

Alexandre Julliard julliard at winehq.org
Wed Oct 4 15:37:15 CDT 2017


Module: wine
Branch: master
Commit: e5a43fa9c804367520e98f051bf9a19008be5405
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e5a43fa9c804367520e98f051bf9a19008be5405

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Oct  4 15:18:02 2017 +0200

server: Don't queue zero size writes in byte mode.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 server/named_pipe.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/named_pipe.c b/server/named_pipe.c
index 2141f44..a98041e 100644
--- a/server/named_pipe.c
+++ b/server/named_pipe.c
@@ -863,6 +863,8 @@ static int pipe_end_write( struct fd *fd, struct async *async, file_pos_t pos )
         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;
     message->async = (struct async *)grab_object( async );
     message->iosb = async_get_iosb( async );




More information about the wine-cvs mailing list