comctl32/toolbar: Remove always true condition (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-03 11:10:24 +03:00 committed by Alexandre Julliard
parent 2a2446abdb
commit b7969dfd94
1 changed files with 1 additions and 2 deletions

View File

@ -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)