Author: gadamopoulos Date: Sun Mar 29 00:37:39 2015 New Revision: 66944
URL: http://svn.reactos.org/svn/reactos?rev=66944&view=rev Log: [SHELL32] - Load the shell extensions of the * class only for files. CORE-6806
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/CDefaultC... ============================================================================== --- trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] Sun Mar 29 00:37:39 2015 @@ -760,13 +760,6 @@ } } } - - if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"*", 0, KEY_READ, &hKey) == ERROR_SUCCESS) - { - /* load default extensions */ - EnumerateDynamicContextHandlerForKey(hKey); - RegCloseKey(hKey); - } } } else @@ -844,6 +837,15 @@ /* sendto service is registered here */ EnumerateDynamicContextHandlerForKey(hKey); RegCloseKey(hKey); + } + + if (!(rfg & SFGAO_FOLDER)) + { + if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"*", 0, KEY_READ, &hKey) == ERROR_SUCCESS) + { + EnumerateDynamicContextHandlerForKey(hKey); + RegCloseKey(hKey); + } } }