Commit 19767466 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Don't release client fd in do_disconnect for pipes in server-side I/O mode.

If server closes without disconnect, it should be still possible to read remaining buffered data. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 56ae76ce
......@@ -452,8 +452,11 @@ static void do_disconnect( struct pipe_server *server )
{
assert( server->client->server == server );
assert( server->client->pipe_end.fd );
release_object( server->client->pipe_end.fd );
server->client->pipe_end.fd = NULL;
if (!use_server_io( &server->pipe_end ))
{
release_object( server->client->pipe_end.fd );
server->client->pipe_end.fd = NULL;
}
}
assert( server->pipe_end.fd );
if (!use_server_io( &server->pipe_end ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment