Win32: fix segfault in WriteConsoleW when debugging in gdb
commit02efbee4f639ae2ab381f6a4502f0a237afe1f01
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerKarsten Blees <blees@dcon.de>
Sun, 9 Jun 2013 19:44:35 +0000 (9 21:44 +0200)
tree24eaaf6683faedb87443e04d488dab110c086b2d
parent74f23e7da60786e14fb1da2af765cd95c7095ed5
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