Commit 67819d6e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

comctl32: Don't use comparisons to FALSE.

parent ba87de83
...@@ -3152,7 +3152,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam) ...@@ -3152,7 +3152,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bChecked = (btnPtr->fsState & TBSTATE_CHECKED) != 0; bChecked = (btnPtr->fsState & TBSTATE_CHECKED) != 0;
if (LOWORD(lParam) == FALSE) if (!LOWORD(lParam))
btnPtr->fsState &= ~TBSTATE_CHECKED; btnPtr->fsState &= ~TBSTATE_CHECKED;
else { else {
if (btnPtr->fsStyle & BTNS_GROUP) { if (btnPtr->fsStyle & BTNS_GROUP) {
...@@ -3284,7 +3284,7 @@ TOOLBAR_EnableButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam) ...@@ -3284,7 +3284,7 @@ TOOLBAR_EnableButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bState = btnPtr->fsState & TBSTATE_ENABLED; bState = btnPtr->fsState & TBSTATE_ENABLED;
/* update the toolbar button state */ /* update the toolbar button state */
if(LOWORD(lParam) == FALSE) { if(!LOWORD(lParam)) {
btnPtr->fsState &= ~(TBSTATE_ENABLED | TBSTATE_PRESSED); btnPtr->fsState &= ~(TBSTATE_ENABLED | TBSTATE_PRESSED);
} else { } else {
btnPtr->fsState |= TBSTATE_ENABLED; btnPtr->fsState |= TBSTATE_ENABLED;
......
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