Commit 152b00b2 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Fix detection of duplicate console history lines.

parent 65ba5932
......@@ -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
......
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