Win32: fix segfault in WriteConsoleW when debugging in gdb
commit379e5cc9c2ac9eaedb4d121e826ea68524e54626
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 5 Dec 2013 23:20:24 +0000 (5 23:20 +0000)
tree2634662f1bfef5731223b5db3e4d358ded381a0b
parent1e51f6c71b04f5ec333b10d9f28a165e678b2b49
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