Module: wine Branch: master Commit: f5dede7c197799d5beea5ee16f98bc1258d3919d URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5dede7c197799d5beea5ee16f...
Author: Francois Gouget fgouget@free.fr Date: Sun Sep 11 23:19:33 2011 +0200
shell32: Add parentheses to clarify the precedence between '&' and '||'.
---
dlls/shell32/pidl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index 71b8f93..c394e5b 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -2243,7 +2243,7 @@ FileStructW* _ILGetFileStructW(LPCITEMIDLIST pidl) { /* Currently I don't see a fool prove way to figure out if a pidl is for sure of WinXP * style with a FileStructW member. If we switch all our shellfolder-implementations to * the new format, this won't be a problem. For now, we do as many sanity checks as possible. */ - if (cbOffset & 0x1 || /* FileStructW member is word aligned in the pidl */ + if ((cbOffset & 0x1) || /* FileStructW member is word aligned in the pidl */ /* FileStructW is positioned after FileStruct */ cbOffset < sizeof(pidl->mkid.cb) + sizeof(PIDLTYPE) + sizeof(FileStruct) || /* There has to be enough space at cbOffset in the pidl to hold FileStructW and cbOffset */