Module: wine Branch: master Commit: bdb65df98294896e490fc58531e6e7200015f3c7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bdb65df98294896e490fc58531...
Author: Francois Gouget fgouget@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 */