user32/tests: Fix resource leak.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrey Gusev 2018-01-03 17:36:03 +02:00 committed by Alexandre Julliard
parent 027e2add2e
commit daa4663980
1 changed files with 1 additions and 0 deletions

View File

@ -2055,6 +2055,7 @@ static void test_Input_mouse(void)
}
SetEvent(thread_data.end_event);
WaitForSingleObject(thread, INFINITE);
CloseHandle(thread);
ok(hittest_no && hittest_no<50, "expected WM_NCHITTEST message\n");
ok(!got_button_down, "unexpected WM_RBUTTONDOWN message\n");
ok(!got_button_up, "unexpected WM_RBUTTONUP message\n");