server: Fix detection of duplicate console history lines.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-04-28 04:23:26 +02:00 committed by Alexandre Julliard
parent 65ba59322d
commit 152b00b20f
1 changed files with 1 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ static void console_input_append_hist( struct console_input* console, const WCHA
ptr[len] = 0; ptr[len] = 0;
if (console->history_mode && console->history_index && if (console->history_mode && console->history_index &&
strncmpW( console->history[console->history_index - 1], ptr, len ) == 0) !strcmpW( console->history[console->history_index - 1], ptr ))
{ {
/* ok, mode ask us to not use twice the same string... /* ok, mode ask us to not use twice the same string...
* so just free mem and returns * so just free mem and returns