kernel32/tests: Fix handle leak.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
065b56e4e1
commit
08abbf091b
|
@ -1389,6 +1389,9 @@ static void test_RegisterWaitForSingleObject(void)
|
|||
ok(!ret, "Expected UnregisterWait to fail\n");
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE,
|
||||
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
|
||||
|
||||
CloseHandle(complete_event);
|
||||
CloseHandle(handle);
|
||||
}
|
||||
|
||||
static DWORD LS_main;
|
||||
|
|
Loading…
Reference in New Issue