Win32: fix segfault in WriteConsoleW when debugging in gdb
commitcd0792afff73a1c9da9fd6569e8caa17c1bb1ebf
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerStepan Kasal <kasal@ucw.cz>
Thu, 29 May 2014 08:40:30 +0000 (29 10:40 +0200)
tree809956212e096e7d061e9ca21daf06513df9890d
parent67934f93f54720398fcf35959f0c391a46593207
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