Win32: fix segfault in WriteConsoleW when debugging in gdb
commitdb487fd996462646ad7a2ee62c6d82aa473f26b8
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 13 Sep 2013 08:37:54 +0000 (13 09:37 +0100)
tree23c37db46c9315bb97adb7af91689d0adab13afc
parenta31c51ccc73f111f412331fe4e6a8fe7ba0ae6f1
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