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

kernel32: Use IOCTL_CONDRV_GET_INPUT_INFO in CONSOLE_GetEditionMode.

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