From: Piotr Caban piotr@codeweavers.com
--- programs/timeout/tests/timeout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/programs/timeout/tests/timeout.c b/programs/timeout/tests/timeout.c index 2ac4131b211..c526b4b08c6 100644 --- a/programs/timeout/tests/timeout.c +++ b/programs/timeout/tests/timeout.c @@ -152,9 +152,7 @@ static void test_ctrlc_intermediate(int argc, char** argv, const char* name) CREATE_NEW_PROCESS_GROUP | CREATE_NEW_CONSOLE, NULL, NULL, &startup, &info), "CreateProcess failed.\n"); - wait_child_process(info.hProcess); - CloseHandle(info.hProcess); - CloseHandle(info.hThread); + wait_child_process(&info); }
START_TEST(timeout)