kernel32: Do not append empty lines to the console history.

This commit is contained in:
Kirill K. Smirnov 2007-08-08 14:55:43 +04:00 committed by Alexandre Julliard
parent a5aab7fae6
commit 5217ea7a1b
1 changed files with 1 additions and 0 deletions

View File

@ -2503,6 +2503,7 @@ BOOL CONSOLE_AppendHistory(const WCHAR* ptr)
BOOL ret; BOOL ret;
while (len && (ptr[len - 1] == '\n' || ptr[len - 1] == '\r')) len--; while (len && (ptr[len - 1] == '\n' || ptr[len - 1] == '\r')) len--;
if (!len) return FALSE;
SERVER_START_REQ( append_console_input_history ) SERVER_START_REQ( append_console_input_history )
{ {