From bdb65df98294896e490fc58531e6e7200015f3c7 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 11 Sep 2011 23:22:14 +0200 Subject: [PATCH] shlwapi: Add parentheses to clarify the precedence between '&' and '&&'. --- dlls/shlwapi/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shlwapi/path.c b/dlls/shlwapi/path.c index 7bd3dfe6c4c..43c32255c6d 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 */ -- 2.11.4.GIT