Win32: fix segfault in WriteConsoleW when debugging in gdb
commit9e5f2e2d03113fbe682c298569a2732af7797227
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Dec 2013 01:17:52 +0000 (29 19:17 -0600)
treec5850619013ad11f4052b9b94ecf2671cdbbd901
parent8b6a3a55b76e19931bd09ae0b4735f501f210994
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