[shell32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 3 Nov 2013 13:15:52 +0000 (13:15 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 3 Nov 2013 13:15:52 +0000 (13:15 +0000)
- 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

reactos/dll/win32/shell32/shlview.cpp

index 07b5cdd..a9fd0b2 100644 (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