comctl32/toolbar: Remove always true condition (Coverity).
This commit is contained in:
parent
2a2446abdb
commit
b7969dfd94
|
@ -3347,8 +3347,7 @@ TOOLBAR_GetButtonInfoT(const TOOLBAR_INFO *infoPtr, INT Id, LPTBBUTTONINFOW lpTb
|
||||||
if (nIndex == -1)
|
if (nIndex == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!(btnPtr = &infoPtr->buttons[nIndex])) return -1;
|
btnPtr = &infoPtr->buttons[nIndex];
|
||||||
|
|
||||||
if (lpTbInfo->dwMask & TBIF_COMMAND)
|
if (lpTbInfo->dwMask & TBIF_COMMAND)
|
||||||
lpTbInfo->idCommand = btnPtr->idCommand;
|
lpTbInfo->idCommand = btnPtr->idCommand;
|
||||||
if (lpTbInfo->dwMask & TBIF_IMAGE)
|
if (lpTbInfo->dwMask & TBIF_IMAGE)
|
||||||
|
|
Loading…
Reference in New Issue