From 6b49e8c209758a5a8e969ddf355793a6155c24dc Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 14 Jan 2012 17:03:40 +0000 Subject: [PATCH] [SHELL32] * Remove the loading new item service hack. * Implement proper loading of dynamic background item context. svn path=/trunk/; revision=54959 --- reactos/dll/win32/shell32/defcontextmenu.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/shell32/defcontextmenu.cpp b/reactos/dll/win32/shell32/defcontextmenu.cpp index 67e5be8600c..bdd53cac682 100644 --- a/reactos/dll/win32/shell32/defcontextmenu.cpp +++ b/reactos/dll/win32/shell32/defcontextmenu.cpp @@ -565,13 +565,9 @@ CDefaultContextMenu::BuildBackgroundContextMenu( } /* load create new shell extension */ - if (RegOpenKeyExW(HKEY_CLASSES_ROOT, - L"CLSID\\{D969A300-E7FF-11d0-A93B-00A0C90F2719}", - 0, - KEY_READ, - &hKey) == ERROR_SUCCESS) + if (RegOpenKeyExW(HKEY_CLASSES_ROOT, L"Directory\\Background", 0, KEY_READ, &hKey) == ERROR_SUCCESS) { - LoadDynamicContextMenuHandler(hKey, &CLSID_NewMenu, TRUE); + EnumerateDynamicContextHandlerForKey(hKey); RegCloseKey(hKey); }