From 95e1de8215ce8b0ece486dcf8c713e98d5dd3a0f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 1 Oct 2020 15:10:09 +0200 Subject: [PATCH] server: Don't propagate STATUS_PENDING in get_next_console_request request. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- server/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/console.c b/server/console.c index b0b6de2eef9..44cacfbb999 100644 --- a/server/console.c +++ b/server/console.c @@ -2715,10 +2715,11 @@ DECL_HANDLER(get_next_console_request) if (ioctl) { unsigned int status = req->status; + if (status == STATUS_PENDING) status = STATUS_INVALID_PARAMETER; if (ioctl->async) { iosb = async_get_iosb( ioctl->async ); - iosb->status = req->status; + iosb->status = status; iosb->out_size = min( iosb->out_size, get_req_data_size() ); if (iosb->out_size) {