Sebastian Lackner : server: Fix detection of duplicate console history lines.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 28 11:01:51 CDT 2016
Module: wine
Branch: master
Commit: 152b00b20f09062a97cf0f05d8bad84cc56a02f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=152b00b20f09062a97cf0f05d8bad84cc56a02f5
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Thu Apr 28 04:23:26 2016 +0200
server: Fix detection of duplicate console history lines.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/console.c b/server/console.c
index efb20da..4d275f0 100644
--- a/server/console.c
+++ b/server/console.c
@@ -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
More information about the wine-cvs
mailing list