Commit d3847e01 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Update internal state only if the message is being removed.

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