[SHELL32]

- Load the shell extensions of the * class only for files.
CORE-6806

svn path=/trunk/; revision=66944
This commit is contained in:
Giannis Adamopoulos 2015-03-29 00:37:39 +00:00
parent 1f2509e3e4
commit b258f29772

View file

@ -760,13 +760,6 @@ CDefaultContextMenu::BuildShellItemContextMenu(
}
}
}
if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"*", 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
/* load default extensions */
EnumerateDynamicContextHandlerForKey(hKey);
RegCloseKey(hKey);
}
}
}
else
@ -845,6 +838,15 @@ CDefaultContextMenu::BuildShellItemContextMenu(
EnumerateDynamicContextHandlerForKey(hKey);
RegCloseKey(hKey);
}
if (!(rfg & SFGAO_FOLDER))
{
if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"*", 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
EnumerateDynamicContextHandlerForKey(hKey);
RegCloseKey(hKey);
}
}
}
/* add static context menu handlers */