From 73f58ee2c727cce18b707d91c6ef444e37ddcdd5 Mon Sep 17 00:00:00 2001 From: Dave Hawkes <daveh-wine@cadlink.com> Date: Tue, 20 Nov 2001 18:54:04 +0000 Subject: [PATCH] TOOLBAR_GetRect did not correctly translate the command ID to the button index. --- dlls/comctl32/toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index ec0f6bfecb8..be7786c1dd4 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -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; -- GitLab