TOOLBAR_GetRect did not correctly translate the command ID to the

button index.
This commit is contained in:
Dave Hawkes 2001-11-20 18:54:04 +00:00 committed by Alexandre Julliard
parent 8e44ba1c89
commit 73f58ee2c7
1 changed files with 1 additions and 1 deletions

View File

@ -2950,7 +2950,7 @@ TOOLBAR_GetRect (HWND hwnd, WPARAM wParam, LPARAM lParam)
if (infoPtr == NULL)
return FALSE;
nIndex = (INT)wParam;
nIndex = TOOLBAR_GetButtonIndex (infoPtr, (INT)wParam);
btnPtr = &infoPtr->buttons[nIndex];
if ((nIndex < 0) || (nIndex >= infoPtr->nNumButtons))
return FALSE;