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:
parent
5386b7e4c8
commit
817ff31811
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue