comctl32: Fix an off-by-one error in toolbar TOOLBAR_SetHotItem.
This commit is contained in:
parent
4f95cf7072
commit
e1a0715b4a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue