From 2238b55fbcf88bf59b1c45489caf66d69b47b246 Mon Sep 17 00:00:00 2001 From: Testo Date: Mon, 28 Mar 2011 00:01:31 +0800 Subject: [PATCH] SERVER-2839: fix crash in Windows 7 --- third_party/linenoise/linenoise_win32.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/third_party/linenoise/linenoise_win32.cpp b/third_party/linenoise/linenoise_win32.cpp index 68b58d4..0a2c334 100644 --- a/third_party/linenoise/linenoise_win32.cpp +++ b/third_party/linenoise/linenoise_win32.cpp @@ -73,7 +73,8 @@ static void output(const char* str, int y) { COORD pos = { (SHORT)x, (SHORT)y }; - WriteConsoleOutputCharacterA(console_out, str, len, pos, 0); + DWORD count = 0; + WriteConsoleOutputCharacterA(console_out, str, len, pos, &count); } static void refreshLine(const char* prompt, -- 1.7.3.1.msysgit.0