Commit 73f58ee2 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard

TOOLBAR_GetRect did not correctly translate the command ID to the

button index.
parent 8e44ba1c
......@@ -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;
......
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