mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[SHELL32]
- Load the shell extensions of the * class only for files. CORE-6806 svn path=/trunk/; revision=66944
This commit is contained in:
parent
1f2509e3e4
commit
b258f29772
1 changed files with 9 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue