include/windowsx.h: Avoid a TRUE:FALSE conditional expression.
Michael Stefaniuc
mstefani at redhat.de
Mon Sep 3 03:41:28 CDT 2012
---
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))
--
1.7.7.6
More information about the wine-patches
mailing list