server: Remove no longer used code from set_console_input_info.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2fc11e8952
commit
fc7dae4ba5
|
@ -849,42 +849,6 @@ static int set_console_input_info( const struct set_console_input_info_request *
|
||||||
evt.event = CONSOLE_RENDERER_TITLE_EVENT;
|
evt.event = CONSOLE_RENDERER_TITLE_EVENT;
|
||||||
console_input_events_append( console, &evt );
|
console_input_events_append( console, &evt );
|
||||||
}
|
}
|
||||||
if (req->mask & SET_CONSOLE_INPUT_INFO_HISTORY_MODE)
|
|
||||||
{
|
|
||||||
console->history_mode = req->history_mode;
|
|
||||||
}
|
|
||||||
if ((req->mask & SET_CONSOLE_INPUT_INFO_HISTORY_SIZE) &&
|
|
||||||
console->history_size != req->history_size)
|
|
||||||
{
|
|
||||||
struct history_line **mem = NULL;
|
|
||||||
int i, delta;
|
|
||||||
|
|
||||||
if (req->history_size)
|
|
||||||
{
|
|
||||||
if (!(mem = mem_alloc( req->history_size * sizeof(*mem) ))) goto error;
|
|
||||||
memset( mem, 0, req->history_size * sizeof(*mem) );
|
|
||||||
}
|
|
||||||
|
|
||||||
delta = (console->history_index > req->history_size) ?
|
|
||||||
(console->history_index - req->history_size) : 0;
|
|
||||||
|
|
||||||
for (i = delta; i < console->history_index; i++)
|
|
||||||
{
|
|
||||||
mem[i - delta] = console->history[i];
|
|
||||||
console->history[i] = NULL;
|
|
||||||
}
|
|
||||||
console->history_index -= delta;
|
|
||||||
|
|
||||||
for (i = 0; i < console->history_size; i++)
|
|
||||||
free( console->history[i] );
|
|
||||||
free( console->history );
|
|
||||||
console->history = mem;
|
|
||||||
console->history_size = req->history_size;
|
|
||||||
}
|
|
||||||
if (req->mask & SET_CONSOLE_INPUT_INFO_EDITION_MODE)
|
|
||||||
{
|
|
||||||
console->edition_mode = req->edition_mode;
|
|
||||||
}
|
|
||||||
if (req->mask & SET_CONSOLE_INPUT_INFO_INPUT_CODEPAGE)
|
if (req->mask & SET_CONSOLE_INPUT_INFO_INPUT_CODEPAGE)
|
||||||
{
|
{
|
||||||
console->input_cp = req->input_cp;
|
console->input_cp = req->input_cp;
|
||||||
|
@ -893,10 +857,6 @@ static int set_console_input_info( const struct set_console_input_info_request *
|
||||||
{
|
{
|
||||||
console->output_cp = req->output_cp;
|
console->output_cp = req->output_cp;
|
||||||
}
|
}
|
||||||
if (req->mask & SET_CONSOLE_INPUT_INFO_WIN)
|
|
||||||
{
|
|
||||||
console->win = req->win;
|
|
||||||
}
|
|
||||||
release_object( console );
|
release_object( console );
|
||||||
return 1;
|
return 1;
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Reference in New Issue