mirror of
https://github.com/reactos/wine.git
synced 2025-02-07 20:57:39 +00:00
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…
x
Reference in New Issue
Block a user