Michael Stefaniuc : include/windowsx.h: Avoid a TRUE: FALSE conditional expression.

Alexandre Julliard julliard at winehq.org
Mon Sep 3 13:19:12 CDT 2012


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Sep  3 10:41:28 2012 +0200

include/windowsx.h: Avoid a TRUE:FALSE conditional expression.

---

 include/windowsx.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/windowsx.h b/include/windowsx.h
index 2920229..0f84622 100644
--- a/include/windowsx.h
+++ b/include/windowsx.h
@@ -232,7 +232,7 @@ extern "C" {
 	((UINT)SendMessage((hwndCtl), BM_SETSTATE, (WPARAM)(int)(state), 0L))
 
 #define Button_SetStyle(hwndCtl, style, fRedraw) \
-	((void)SendMessage((hwndCtl), BM_SETSTYLE, (WPARAM)LOWORD(style), MAKELPARAM(((fRedraw) ? TRUE : FALSE), 0)))
+	((void)SendMessage((hwndCtl), BM_SETSTYLE, (WPARAM)LOWORD(style), MAKELPARAM((fRedraw) != 0, 0)))
 
 #define Button_SetText(hwndCtl, lpsz) \
 	SetWindowText((hwndCtl), (lpsz))




More information about the wine-cvs mailing list