Work around a regression in Windows 7, causing erase_in_line() to crash sometimes
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 1 Jun 2009 06:04:16 +0000 (08:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2009 07:08:54 +0000 (00:08 -0700)
commit492f70913e11de19bc4cb197b1fe195c645b89c9
tree2f564c3827c5d3b169e83bb3a7582106cf626da5
parent900a5d075e8b48025439966dc3863189874bae3b
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>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/winansi.c