Win32: fix segfault in WriteConsoleW when debugging in gdb
commit215532a2ca0cb4ffb373c5394d9746c25d6fa892
authorKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 13:45:49 +0000 (15 14:45 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 27 Dec 2013 16:04:56 +0000 (27 10:04 -0600)
tree3ab0d186789952cacac20fcf3957d71f0b4aae2e
parentde4643272483c780f2132b0f656c29aaf52ba146
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