conhost: Remove no longer needed non-blocking IOCTL_CONDRV_READ_INPUT.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-10-15 18:19:59 +02:00 committed by Alexandre Julliard
parent 7fe55d2f7a
commit 01c17ca260
2 changed files with 3 additions and 6 deletions

View file

@ -1373,8 +1373,7 @@ BOOL WINAPI ReadConsoleInputA( HANDLE handle, INPUT_RECORD *buffer, DWORD length
*/
BOOL WINAPI ReadConsoleInputW( HANDLE handle, INPUT_RECORD *buffer, DWORD length, DWORD *count )
{
int blocking = 1;
if (!console_ioctl( handle, IOCTL_CONDRV_READ_INPUT, &blocking, sizeof(blocking),
if (!console_ioctl( handle, IOCTL_CONDRV_READ_INPUT, NULL, 0,
buffer, length * sizeof(*buffer), count ))
return FALSE;
*count /= sizeof(*buffer);

View file

@ -2358,11 +2358,9 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
case IOCTL_CONDRV_READ_INPUT:
{
unsigned int blocking;
if (in_size && in_size != sizeof(blocking)) return STATUS_INVALID_PARAMETER;
if (in_size) return STATUS_INVALID_PARAMETER;
ensure_tty_input_thread( console );
blocking = in_size && *(unsigned int *)in_data;
if (blocking && !console->record_count && *out_size)
if (!console->record_count && *out_size)
{
TRACE( "pending read\n" );
console->read_ioctl = IOCTL_CONDRV_READ_INPUT;