mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:25:58 +00:00
[0.4.14][SHELL32] Revert CDefView::FillFileMenu (#5278)
this fixes: CORE-18429 Explorer should not have duplicated menus in the File menu It regressed by 0.4.14-dev-955-g1cf564c1cf564c25f
And we do now mention here CORE-9467 (and its duplicate CORE-11797 also) to make us aware there is still something to do in this context. The guilty rev aimed to fix those. But it wasn't the right thing to do. by porting back the revert: 0.4.15-dev-6039-g0fa4edebd9
and addendum 0.4.15-dev-6083-gd3164a0f55
This commit is contained in:
parent
cde9eea79e
commit
d2cbda09c5
1 changed files with 1 additions and 4 deletions
|
@ -1241,11 +1241,8 @@ HRESULT CDefView::FillFileMenu()
|
|||
DeleteMenu(hFileMenu, i, MF_BYPOSITION);
|
||||
}
|
||||
|
||||
m_cidl = m_ListView.GetSelectedCount();
|
||||
|
||||
/* Store the context menu in m_pCM and keep it in order to invoke the selected command later on */
|
||||
HRESULT hr = GetItemObject((m_cidl ? SVGIO_SELECTION : SVGIO_BACKGROUND),
|
||||
IID_PPV_ARG(IContextMenu, &m_pCM));
|
||||
HRESULT hr = GetItemObject(SVGIO_SELECTION, IID_PPV_ARG(IContextMenu, &m_pCM));
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue