Commit 08abbf09 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

kernel32/tests: Fix handle leak.

parent 065b56e4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment