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:
parent
65ba59322d
commit
152b00b20f
|
@ -1055,7 +1055,7 @@ static void console_input_append_hist( struct console_input* console, const WCHA
|
|||
ptr[len] = 0;
|
||||
|
||||
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...
|
||||
* so just free mem and returns
|
||||
|
|
Loading…
Reference in New Issue