mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Setting the HotItem to -1 can be disastrous at times if it equals
oldhit.
This commit is contained in:
parent
dd2247817e
commit
826465dc22
@ -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)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user