Commit ce2b767f authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

user32: When calling TrackMouseEvent with TME_LEAVE the dwHoverTime may be uninitialized.

parent e302fcff
......@@ -921,8 +921,9 @@ TrackMouseEvent (TRACKMOUSEEVENT *ptme)
hover_time = ptme->dwHoverTime;
/* if HOVER_DEFAULT was specified replace this with the systems current value */
if (hover_time == HOVER_DEFAULT || hover_time == 0)
/* if HOVER_DEFAULT was specified replace this with the systems current value.
* TME_LEAVE doesn't need to specify hover time so use default */
if (hover_time == HOVER_DEFAULT || hover_time == 0 || !(ptme->dwHoverTime&TME_HOVER))
SystemParametersInfoW(SPI_GETMOUSEHOVERTIME, 0, &hover_time, 0);
GetCursorPos(&pos);
......
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