conhost/tests: Initialize whole OVERLAPPED struct in fetch_console_output.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-11-11 20:07:06 +01:00 committed by Alexandre Julliard
parent 5386b7e4c8
commit 817ff31811
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ static void fetch_console_output_(unsigned int line)
if (console_output_count == sizeof(console_output)) return;
memset(&o, 0, sizeof(o));
o.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
ret = ReadFile(console_pipe, console_output + console_output_count,
sizeof(console_output) - console_output_count, NULL, &o);