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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 8 08:59:54 CDT 2007


Module: wine
Branch: master
Commit: 5217ea7a1bbc5ef36895c1f27e7fcdd62245048f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5217ea7a1bbc5ef36895c1f27e7fcdd62245048f

Author: Kirill K. Smirnov <lich at math.spbu.ru>
Date:   Wed Aug  8 14:55:43 2007 +0400

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

---

 dlls/kernel32/console.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index b4e8437..8da9f8c 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -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 )
     {




More information about the wine-cvs mailing list