From c21000ea81a63d4ed7c4810dc12d2bccd72edada Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 3 Sep 2012 10:41:28 +0200 Subject: [PATCH] include/windowsx.h: Avoid a TRUE:FALSE conditional expression. --- include/windowsx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/windowsx.h b/include/windowsx.h index 2920229a9b0..0f846229c92 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)) -- 2.11.4.GIT