Author: gadamopoulos Date: Mon Mar 30 13:04:48 2015 New Revision: 66980 URL: http://svn.reactos.org/svn/reactos?rev=66980&view=rev Log: [SHELL32] - CDefaultContextMenu: GetAttributesOf should only return the requested flags and not more. However our shell is not up to such nice behavior so don't depend o it for now.
Modified: trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp Modified: trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp?rev=66980&r1=66979&r2=66980&view=diff ============================================================================== --- trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] Mon Mar 30 13:04:48 2015 @@ -567,7 +567,7 @@ } /* Directory is progid of filesystem folders only */ - if (rfg == (SFGAO_FILESYSTEM|SFGAO_FOLDER)) + if ((rfg & (SFGAO_FILESYSTEM|SFGAO_FOLDER)) == (SFGAO_FILESYSTEM|SFGAO_FOLDER)) { /* Load context menu handlers */ TRACE("Add background handlers: %p\n", m_pidlFolder);