From 0e91e9fc1887d30a1e771458133ab44c2c47bde9 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Mon, 30 Mar 2015 13:04:48 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=66980 --- reactos/dll/win32/shell32/CDefaultContextMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/CDefaultContextMenu.cpp b/reactos/dll/win32/shell32/CDefaultContextMenu.cpp index 9782d3d240b..de41ffd3035 100644 --- a/reactos/dll/win32/shell32/CDefaultContextMenu.cpp +++ b/reactos/dll/win32/shell32/CDefaultContextMenu.cpp @@ -567,7 +567,7 @@ CDefaultContextMenu::BuildBackgroundContextMenu( } /* 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);