Commit 7aadafbd authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernelbase: Use IOCTL_CONDRV_SET_MODE in SetConsoleMode.

parent 22f53e6d
......@@ -1267,18 +1267,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleInputExeNameW( LPCWSTR name )
*/
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode( HANDLE handle, DWORD mode )
{
BOOL ret;
SERVER_START_REQ(set_console_mode)
{
req->handle = console_handle_unmap( handle );
req->mode = mode;
ret = !wine_server_call_err( req );
}
SERVER_END_REQ;
TRACE( "(%p,%x) retval == %d\n", handle, mode, ret );
return ret;
TRACE( "(%p,%x)\n", handle, mode );
return console_ioctl( handle, IOCTL_CONDRV_SET_MODE, &mode, sizeof(mode), NULL, 0, NULL );
}
......
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