shlwapi: Add parentheses to clarify the precedence between '&' and '&&'.

This commit is contained in:
Francois Gouget 2011-09-11 23:22:14 +02:00 committed by Alexandre Julliard
parent ddaaa54b15
commit bdb65df982
1 changed files with 1 additions and 1 deletions

View File

@ -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 */