server: Fix string length used with strncmpW().

This commit is contained in:
Nikolay Sivov 2013-08-27 14:15:36 +04:00 committed by Alexandre Julliard
parent 5a8ca9e2e8
commit 2ef7e5fdae
1 changed files with 1 additions and 1 deletions

View File

@ -1034,7 +1034,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 * sizeof(WCHAR) ) == 0)
strncmpW( console->history[console->history_index - 1], ptr, len ) == 0)
{
/* ok, mode ask us to not use twice the same string...
* so just free mem and returns