kernel32: Do not append empty lines to the console history.
This commit is contained in:
parent
a5aab7fae6
commit
5217ea7a1b
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue