Commit 5217ea7a authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

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

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