Work around a regression in Windows 7, causing erase_in_line() to crash sometimes
commitaa3abfc9852a4d4cfaa7f0042102eb56ed2e0daa
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 20 Apr 2009 19:43:11 +0000 (20 21:43 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 21 Apr 2009 08:42:12 +0000 (21 10:42 +0200)
tree685adef6bbc3b932afa31d546b6142aadc0f069a
parent933833643ac7e5c08cb8ea3cb00e1fa128e57960
Work around a regression in Windows 7, causing erase_in_line() to crash sometimes

The function FillConsoleOutputCharacterA() was pretty content in XP to take a NULL
pointer if we did not want to store the number of written columns.  In Windows 7,
it crashes, but only when called from within Git Bash, not from within cmd.exe.
Go figure.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/winansi.c