kernelbase: Use IOCTL_CONDRV_SET_MODE in SetConsoleMode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
22f53e6d9d
commit
7aadafbd50
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue