kernel32: Use IOCTL_CONDRV_GET_INPUT_INFO in CONSOLE_GetEditionMode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-07-07 16:07:15 +02:00 committed by Alexandre Julliard
parent eff42369e9
commit d04baa29e2
1 changed files with 3 additions and 9 deletions

View File

@ -1077,15 +1077,9 @@ unsigned CONSOLE_GetNumHistoryEntries(void)
*/ */
BOOL CONSOLE_GetEditionMode(HANDLE hConIn, int* mode) BOOL CONSOLE_GetEditionMode(HANDLE hConIn, int* mode)
{ {
unsigned ret = 0; struct condrv_input_info info;
SERVER_START_REQ(get_console_input_info) return DeviceIoControl( hConIn, IOCTL_CONDRV_GET_INPUT_INFO, NULL, 0, &info, sizeof(info), NULL, NULL )
{ ? info.edition_mode : 0;
req->handle = console_handle_unmap(hConIn);
if ((ret = !wine_server_call_err( req )))
*mode = reply->edition_mode;
}
SERVER_END_REQ;
return ret;
} }
/****************************************************************** /******************************************************************