comsvcs/tests: Close test thread handles.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-10-21 09:50:44 +03:00 committed by Alexandre Julliard
parent 14003b00f5
commit c650ec93ef
1 changed files with 2 additions and 0 deletions

View File

@ -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);