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:
Brendan Shanks 2020-06-08 15:09:07 -07:00 committed by Alexandre Julliard
parent 065b56e4e1
commit 08abbf091b
1 changed files with 3 additions and 0 deletions

View File

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