user32: Release capture before sending WM_COMMAND.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2015-10-12 01:30:51 -06:00 committed by Alexandre Julliard
parent 8b054fb307
commit a3e4c69419
1 changed files with 5 additions and 1 deletions

View File

@ -353,9 +353,13 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
(state & BST_INDETERMINATE) ? 0 : ((state & 3) + 1), 0 );
break;
}
ReleaseCapture();
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
}
ReleaseCapture();
else
{
ReleaseCapture();
}
break;
case WM_CAPTURECHANGED: