server: Block console write until conhost processes ioctl.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50236
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-12-01 19:21:58 +01:00 committed by Alexandre Julliard
parent 60f11d2929
commit 09b6efd685

View file

@ -992,9 +992,7 @@ static int screen_buffer_write( struct fd *fd, struct async *async, file_pos_t p
/* we can't use default async handling, because write result is not
* compatible with ioctl result */
iosb = async_get_iosb( async );
iosb->status = STATUS_SUCCESS;
iosb->result = iosb->in_size;
async_terminate( async, iosb->result ? STATUS_ALERTED : STATUS_SUCCESS );
release_object( iosb );
return 1;
}