=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: comctl32: Avoid TRUE: FALSE conditional expressions.

Alexandre Julliard julliard at winehq.org
Thu Jan 16 14:52:27 CST 2014


Module: wine
Branch: master
Commit: 3684578a9f64b497b49d8b44151e8a3bf5b1278c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3684578a9f64b497b49d8b44151e8a3bf5b1278c

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Jan 15 23:58:17 2014 +0100

comctl32: Avoid TRUE:FALSE conditional expressions.

---

 dlls/comctl32/comboex.c |    2 +-
 dlls/comctl32/rebar.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/comboex.c b/dlls/comctl32/comboex.c
index f1acc7d..31762b1 100644
--- a/dlls/comctl32/comboex.c
+++ b/dlls/comctl32/comboex.c
@@ -1590,7 +1590,7 @@ static LRESULT COMBOEX_NotifyFormat (COMBOEX_INFO *infoPtr, LPARAM lParam)
     if (lParam == NF_REQUERY) {
 	INT i = SendMessageW(infoPtr->hwndNotify,
 			 WM_NOTIFYFORMAT, (WPARAM)infoPtr->hwndSelf, NF_QUERY);
-	infoPtr->NtfUnicode = (i == NFR_UNICODE) ? 1 : 0;
+        infoPtr->NtfUnicode = (i == NFR_UNICODE);
     }
     return infoPtr->NtfUnicode ? NFR_UNICODE : NFR_ANSI;
 }
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 4a3b7d4..becfe20 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -3385,7 +3385,7 @@ REBAR_NotifyFormat (REBAR_INFO *infoPtr, LPARAM cmd)
 	    ERR("wrong response to WM_NOTIFYFORMAT (%d), assuming ANSI\n", i);
 	    i = NFR_ANSI;
 	}
-        infoPtr->bUnicode = (i == NFR_UNICODE) ? 1 : 0;
+        infoPtr->bUnicode = (i == NFR_UNICODE);
 	return (LRESULT)i;
     }
     return (LRESULT)((infoPtr->bUnicode) ? NFR_UNICODE : NFR_ANSI);




More information about the wine-cvs mailing list