[shell32]

- When the caller uses SVGIO_BACKGROUND we should always return a context menu of the background. To do it we pass no items to CDefFolderMenu even when we have selected items. Should improve the situation for ctrl+c, ctrl+v in the shell

svn path=/trunk/; revision=60845
This commit is contained in:
Giannis Adamopoulos 2013-11-03 13:15:52 +00:00
parent c919f3e29f
commit 996c436ef2

View file

@ -2089,7 +2089,7 @@ HRESULT WINAPI CDefView::GetItemObject(UINT uItem, REFIID riid, LPVOID *ppvOut)
if (IsEqualIID(riid, IID_IContextMenu))
{
//*ppvOut = ISvBgCm_Constructor(pSFParent, FALSE);
CDefFolderMenu_Create2(NULL, NULL, cidl, (LPCITEMIDLIST*)apidl, pSFParent, NULL, 0, NULL, (IContextMenu**)ppvOut);
CDefFolderMenu_Create2(NULL, NULL, 0, NULL, pSFParent, NULL, 0, NULL, (IContextMenu**)ppvOut);
if (!ppvOut)
hr = E_OUTOFMEMORY;
else