From a6f924f3b8c9dc8d02d78510df087f0742500fd6 Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Sat, 21 May 2022 12:39:23 -0500 Subject: [PATCH] mscoree/tests: Use wait_child_process for csc process. Signed-off-by: Esme Povirk --- dlls/mscoree/tests/comtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mscoree/tests/comtest.c b/dlls/mscoree/tests/comtest.c index aa23032f18f..db6acac1e9e 100644 --- a/dlls/mscoree/tests/comtest.c +++ b/dlls/mscoree/tests/comtest.c @@ -94,7 +94,7 @@ static BOOL compile_cs_to_dll(char *source_path, char *dest_path) ret = CreateProcessA(path_csc, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); ok(ret, "Could not create process: %lu\n", GetLastError()); - WaitForSingleObject(pi.hProcess, 5000); + wait_child_process(pi.hProcess); CloseHandle(pi.hThread); CloseHandle(pi.hProcess);