Commit e1a0715b authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

comctl32: Fix an off-by-one error in toolbar TOOLBAR_SetHotItem.

parent 4f95cf70
......@@ -4761,7 +4761,7 @@ TOOLBAR_SetHotItem (HWND hwnd, WPARAM wParam)
TRACE("hwnd = %p, nHit = %d\n", hwnd, (INT)wParam);
if ((INT)wParam > infoPtr->nNumButtons)
if ((INT)wParam >= infoPtr->nNumButtons)
return infoPtr->nHotItem;
if ((INT)wParam < 0)
......
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