shlwapi: Add parentheses to clarify the precedence between '&' and '&&'.
Francois Gouget
fgouget at free.fr
Sun Sep 11 16:22:14 CDT 2011
---
See:
http://www.winehq.org/pipermail/wine-patches/2011-September/106510.html
dlls/shlwapi/path.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shlwapi/path.c b/dlls/shlwapi/path.c
index 7bd3dfe..43c3225 100644
--- a/dlls/shlwapi/path.c
+++ b/dlls/shlwapi/path.c
@@ -2974,7 +2974,7 @@ UINT WINAPI PathGetCharTypeW(WCHAR ch)
{
if (ch < 126)
{
- if ((ch & 0x1 && ch != ';') || !ch || isalnum(ch) || ch == '$' || ch == '&' || ch == '(' ||
+ if (((ch & 0x1) && ch != ';') || !ch || isalnum(ch) || ch == '$' || ch == '&' || ch == '(' ||
ch == '.' || ch == '@' || ch == '^' ||
ch == '\'' || ch == 130 || ch == '`')
flags |= GCT_SHORTCHAR; /* All these are valid for DOS */
--
1.7.5.4
More information about the wine-patches
mailing list