From b7969dfd9413ab21ccf0a36d085f78077cb351e2 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 3 Jun 2015 11:10:24 +0300 Subject: [PATCH] comctl32/toolbar: Remove always true condition (Coverity). --- dlls/comctl32/toolbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index ecf0604a810..2c7ed63f56d 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -3347,8 +3347,7 @@ TOOLBAR_GetButtonInfoT(const TOOLBAR_INFO *infoPtr, INT Id, LPTBBUTTONINFOW lpTb if (nIndex == -1) return -1; - if (!(btnPtr = &infoPtr->buttons[nIndex])) return -1; - + btnPtr = &infoPtr->buttons[nIndex]; if (lpTbInfo->dwMask & TBIF_COMMAND) lpTbInfo->idCommand = btnPtr->idCommand; if (lpTbInfo->dwMask & TBIF_IMAGE)