[PATCH] comsvcs/tests: Close test thread handles.

Nikolay Sivov nsivov at codeweavers.com
Wed Oct 21 01:50:44 CDT 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/comsvcs/tests/comsvcs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/comsvcs/tests/comsvcs.c b/dlls/comsvcs/tests/comsvcs.c
index 4e9471e7343..f0cf0d8543f 100644
--- a/dlls/comsvcs/tests/comsvcs.c
+++ b/dlls/comsvcs/tests/comsvcs.c
@@ -197,6 +197,7 @@ static void create_dispenser(void)
     ok(!WaitForSingleObject(thread, 1000), "wait failed\n");
     GetExitCodeThread(thread, &ret);
     ok(ret == CO_E_NOTINITIALIZED, "got unexpected hr %#x\n", ret);
+    CloseHandle(thread);
 
     init_test_driver(&driver);
 
@@ -210,6 +211,7 @@ static void create_dispenser(void)
     ok(!WaitForSingleObject(thread, 20000), "wait failed\n");
     GetExitCodeThread(thread, &ret);
     ok(ret == S_OK, "got unexpected hr %#x\n", ret);
+    CloseHandle(thread);
 
     hr = IDispenserManager_RegisterDispenser(dispenser, &driver.IDispenserDriver_iface, L"SC.Pool 0 0", &holder2);
     ok(hr == S_OK, "got 0x%08x\n", hr);
-- 
2.28.0




More information about the wine-devel mailing list