Francois Gouget : shlwapi: Add parentheses to clarify the precedence between '&' and '&&'.
Alexandre Julliard
julliard at winehq.org
Mon Sep 12 11:42:57 CDT 2011
Module: wine
Branch: master
Commit: bdb65df98294896e490fc58531e6e7200015f3c7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bdb65df98294896e490fc58531e6e7200015f3c7
Author: Francois Gouget <fgouget at free.fr>
Date: Sun Sep 11 23:22:14 2011 +0200
shlwapi: Add parentheses to clarify the precedence between '&' and '&&'.
---
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 */
More information about the wine-cvs
mailing list