Commit be7a9d16 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Do not process WM_LBUTTONUP message in ButtonWndProc()

when the mouse is not captured.
parent 86b686fb
......@@ -143,6 +143,8 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
break;
case WM_LBUTTONUP:
/* FIXME: real windows uses extra flags in the status for this */
if (GetCapture() != hWnd) break;
ReleaseCapture();
if (!(infoPtr->state & BUTTON_HIGHLIGHTED)) break;
SendMessageA( hWnd, BM_SETSTATE, FALSE, 0 );
......
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