Commit 545d7f13 authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

server: Fix access check in screen buffer handling.

parent 0de574b2
......@@ -611,10 +611,10 @@ static int set_console_input_info( const struct set_console_input_info_request *
struct screen_buffer *screen_buffer;
screen_buffer = (struct screen_buffer *)get_handle_obj( current->process, req->active_sb,
CONSOLE_READ, &screen_buffer_ops );
CONSOLE_WRITE, &screen_buffer_ops );
if (!screen_buffer || screen_buffer->input != console)
{
set_error( STATUS_INVALID_PARAMETER );
set_error( STATUS_INVALID_HANDLE );
if (screen_buffer) release_object( screen_buffer );
goto error;
}
......
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