Win32: fix segfault in WriteConsoleW when debugging in gdb
commita5353bd2ac83a4678e86a36dc4460e4d46a08eaa
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 10 May 2014 21:56:32 +0000 (10 16:56 -0500)
tree3204538a87542fff18257ba2bf7b12a017949f25
parentd3910e16385312d0557856c18b42818188488a6f
Win32: fix segfault in WriteConsoleW when debugging in gdb

On Windows XP (not Win7), WriteConsoleW and WriteFile seem to raise and
catch SIGSEGV if the lpNumberOfCharsWritten parameter is NULL. This is not
a problem when executed standalone, but gdb stops execution here (unless
disabled via "handle SIGSEGV nostop").

Fix it by passing a dummy variable.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/winansi.c