From 996c436ef2d8308923870090341c7f5309aa27da Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sun, 3 Nov 2013 13:15:52 +0000 Subject: [PATCH] [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 --- reactos/dll/win32/shell32/shlview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/shlview.cpp b/reactos/dll/win32/shell32/shlview.cpp index 07b5cddbb8e..a9fd0b29322 100644 --- a/reactos/dll/win32/shell32/shlview.cpp +++ b/reactos/dll/win32/shell32/shlview.cpp @@ -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