[PATCH 0/1] MR9099: user32/tests: Don't leak thread handle in test_TrackMouseEvent().
From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/user32/tests/msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index a5124d96a3e..8671134f349 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -15031,7 +15031,8 @@ static void test_TrackMouseEvent(void) ok(tme.dwHoverTime == (expected_hover_time), \ "wrong tme.dwHoverTime %lu, expected %u\n", tme.dwHoverTime, (expected_hover_time)); \ thread = CreateThread( NULL, 0, track_mouse_event_query_thread, &tme, 0, NULL ); \ - WaitForSingleObject( thread, INFINITE ) + WaitForSingleObject( thread, INFINITE ); \ + CloseHandle( thread ) #define track_hover_cancel(track_hwnd) \ tme.cbSize = sizeof(tme); \ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9099
participants (2)
-
Paul Gofman -
Paul Gofman (@gofman)