[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: comctl32: Don't use comparisons to FALSE.
From: Jacek Caban <jacek () codeweavers ! com>
Date: 2015-11-09 15:21:17
Message-ID: 5640B9ED.3020205 () codeweavers ! com
[Download RAW message or body]
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
---
dlls/comctl32/toolbar.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
["0001-comctl32-Don-t-use-comparitions-to-FALSE.diff" (text/x-patch)]
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 9121266..890c18e 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -3152,7 +3152,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bChecked = (btnPtr->fsState & TBSTATE_CHECKED) != 0;
- if (LOWORD(lParam) == FALSE)
+ if (!LOWORD(lParam))
btnPtr->fsState &= ~TBSTATE_CHECKED;
else {
if (btnPtr->fsStyle & BTNS_GROUP) {
@@ -3284,7 +3284,7 @@ TOOLBAR_EnableButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bState = btnPtr->fsState & TBSTATE_ENABLED;
/* update the toolbar button state */
- if(LOWORD(lParam) == FALSE) {
+ if(!LOWORD(lParam)) {
btnPtr->fsState &= ~(TBSTATE_ENABLED | TBSTATE_PRESSED);
} else {
btnPtr->fsState |= TBSTATE_ENABLED;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic