From f08e1261edff24dbc2db8a00d26b31ba14cbd1bc Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 26 Feb 2014 22:56:27 +0000 Subject: [PATCH] [User32|ListBox] - Patch by Huw Davies: If the listbox loses focus while holding capture, release it by essentially simulating a button up event. svn path=/trunk/; revision=62339 --- reactos/win32ss/user/user32/controls/listbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/win32ss/user/user32/controls/listbox.c b/reactos/win32ss/user/user32/controls/listbox.c index 09081e749dc..18e0fe99660 100644 --- a/reactos/win32ss/user/user32/controls/listbox.c +++ b/reactos/win32ss/user/user32/controls/listbox.c @@ -3052,6 +3052,7 @@ LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg, SEND_NOTIFICATION( descr, LBN_SETFOCUS ); return 0; case WM_KILLFOCUS: + LISTBOX_HandleLButtonUp( descr ); /* Release capture if we have it */ descr->in_focus = FALSE; descr->wheel_remain = 0; if ((descr->focus_item != -1) && descr->caret_on)