server: Fix access check in screen buffer handling.

This commit is contained in:
Kirill K. Smirnov 2007-05-09 20:56:29 +04:00 committed by Alexandre Julliard
parent 0de574b258
commit 545d7f130c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}