From 817ff31811dda0b4cadc9cc4f0c36b5cd5776917 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 11 Nov 2020 20:07:06 +0100 Subject: [PATCH] conhost/tests: Initialize whole OVERLAPPED struct in fetch_console_output. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- programs/conhost/tests/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/conhost/tests/tty.c b/programs/conhost/tests/tty.c index 1e2f9550727..4eb85a17a01 100644 --- a/programs/conhost/tests/tty.c +++ b/programs/conhost/tests/tty.c @@ -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);