[SHELL32] CNewMenu: Don't use CWM_GETISHELLBROWSER.

CDefaultContextMenu: Set the site for context menu extensions
CNewMenu: Get SID_IFolderView service of the site to get the IShellView
This commit is contained in:
Giannis Adamopoulos 2018-02-15 00:58:22 +02:00
parent b97886ea9f
commit 67f99833cd
3 changed files with 13 additions and 13 deletions

View file

@ -376,6 +376,9 @@ CDefaultContextMenu::LoadDynamicContextMenuHandler(HKEY hKey, const CLSID *pclsi
return hr;
}
if (m_site)
IUnknown_SetSite(pcm, m_site);
PDynamicShellEntry pEntry = (DynamicShellEntry *)HeapAlloc(GetProcessHeap(), 0, sizeof(DynamicShellEntry));
if (!pEntry)
return E_OUTOFMEMORY;