comdlg32: Use logical OR not bitwise OR.
This commit is contained in:
parent
1818d3a208
commit
3d5cc3b2e2
|
@ -868,8 +868,8 @@ static HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_IncludeObject(ICommDlgBr
|
|||
ulAttr = SFGAO_HIDDEN | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR | SFGAO_LINK;
|
||||
IShellFolder_GetAttributesOf(fodInfos->Shell.FOIShellFolder, 1, &pidl, &ulAttr);
|
||||
|
||||
if( (ulAttr & SFGAO_HIDDEN) /* hidden */
|
||||
| !(ulAttr & (SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR))) /* special folder */
|
||||
if( (ulAttr & SFGAO_HIDDEN) || /* hidden */
|
||||
!(ulAttr & (SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR))) /* special folder */
|
||||
return S_FALSE;
|
||||
|
||||
/* always include directories and links */
|
||||
|
|
Loading…
Reference in New Issue