Commit 826465dc authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Setting the HotItem to -1 can be disastrous at times if it equals

oldhit.
parent dd224781
......@@ -3369,6 +3369,9 @@ TOOLBAR_SetHotItem (HWND hwnd, WPARAM wParam)
INT nOldHotItem = infoPtr->nHotItem;
TBUTTON_INFO *btnPtr;
if ((INT) wParam < 0 || (INT)wParam > infoPtr->nNumButtons)
wParam = -2;
if (GetWindowLongA (hwnd, GWL_STYLE) & TBSTYLE_FLAT)
{
......
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