winhlp32: Add parentheses to clarify the precedence between '&' and '&&'.
Francois Gouget
fgouget at free.fr
Sun Sep 11 16:19:40 CDT 2011
---
See:
http://www.winehq.org/pipermail/wine-patches/2011-September/106510.html
programs/winhlp32/hlpfile.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c
index 2f97a02..fcdca60 100644
--- a/programs/winhlp32/hlpfile.c
+++ b/programs/winhlp32/hlpfile.c
@@ -1367,14 +1367,14 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
BYTE brdr = *format++;
short w;
- if (brdr & 0x01 && !HLPFILE_RtfAddControl(rd, "\\box")) goto done;
- if (brdr & 0x02 && !HLPFILE_RtfAddControl(rd, "\\brdrt")) goto done;
- if (brdr & 0x04 && !HLPFILE_RtfAddControl(rd, "\\brdrl")) goto done;
- if (brdr & 0x08 && !HLPFILE_RtfAddControl(rd, "\\brdrb")) goto done;
- if (brdr & 0x10 && !HLPFILE_RtfAddControl(rd, "\\brdrr")) goto done;
- if (brdr & 0x20 && !HLPFILE_RtfAddControl(rd, "\\brdrth")) goto done;
+ if ((brdr & 0x01) && !HLPFILE_RtfAddControl(rd, "\\box")) goto done;
+ if ((brdr & 0x02) && !HLPFILE_RtfAddControl(rd, "\\brdrt")) goto done;
+ if ((brdr & 0x04) && !HLPFILE_RtfAddControl(rd, "\\brdrl")) goto done;
+ if ((brdr & 0x08) && !HLPFILE_RtfAddControl(rd, "\\brdrb")) goto done;
+ if ((brdr & 0x10) && !HLPFILE_RtfAddControl(rd, "\\brdrr")) goto done;
+ if ((brdr & 0x20) && !HLPFILE_RtfAddControl(rd, "\\brdrth")) goto done;
if (!(brdr & 0x20) && !HLPFILE_RtfAddControl(rd, "\\brdrs")) goto done;
- if (brdr & 0x40 && !HLPFILE_RtfAddControl(rd, "\\brdrdb")) goto done;
+ if ((brdr & 0x40) && !HLPFILE_RtfAddControl(rd, "\\brdrdb")) goto done;
/* 0x80: unknown */
w = GET_SHORT(format, 0); format += 2;
--
1.7.5.4
More information about the wine-patches
mailing list