Update internal state only if the message is being removed.

This commit is contained in:
Dmitry Timoshkov 2005-06-02 10:38:12 +00:00 committed by Alexandre Julliard
parent 5548e86b72
commit d3847e01b7
1 changed files with 5 additions and 2 deletions

View File

@ -1727,8 +1727,11 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
(abs(msg->pt.y - clk_msg.pt.y) < GetSystemMetrics(SM_CYDOUBLECLK)/2))
{
message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
clk_msg.message = 0; /* clear the double click conditions */
update = FALSE;
if (update)
{
clk_msg.message = 0; /* clear the double click conditions */
update = FALSE;
}
}
}
if (message < first || message > last) return FALSE;