Win32: fix segfault in WriteConsoleW when debugging in gdb
commit49da5f7c768aca669f50194d722b2f1a092f9c5f
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:31:38 +0000 (16 16:31 +0200)
tree903c33f2faebe841a04b60653d8e9e9d4565b809
parent17fc483f21e269d3ea74957355b22c86fce30345
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