mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[0.4.13][SHELL32] Bypass OpenWith for Delete and F2 (Rename) Keys (#4032) CORE-17810
Logspam started during 0.4.9-dev'ing when zipfldr got committed, logspam became much worse by 0.4.10-dev-599-g932df378bf
But the actual bug of 'calling those functions when not needed' is much older than that. Fix picked from 0.4.15-dev-3275-gcee171f5d2
This commit is contained in:
parent
e12fc5812f
commit
609ec58d77
1 changed files with 10 additions and 8 deletions
|
@ -1508,19 +1508,21 @@ cleanup:
|
|||
LRESULT CDefView::OnExplorerCommand(UINT uCommand, BOOL bUseSelection)
|
||||
{
|
||||
HRESULT hResult;
|
||||
HMENU hMenu;
|
||||
|
||||
hMenu = CreatePopupMenu();
|
||||
if (!hMenu)
|
||||
return 0;
|
||||
HMENU hMenu = NULL;
|
||||
|
||||
hResult = GetItemObject( bUseSelection ? SVGIO_SELECTION : SVGIO_BACKGROUND, IID_PPV_ARG(IContextMenu, &m_pCM));
|
||||
if (FAILED_UNEXPECTEDLY( hResult))
|
||||
goto cleanup;
|
||||
if ((uCommand != FCIDM_SHVIEW_DELETE) && (uCommand != FCIDM_SHVIEW_RENAME))
|
||||
{
|
||||
hMenu = CreatePopupMenu();
|
||||
if (!hMenu)
|
||||
return 0;
|
||||
|
||||
hResult = m_pCM->QueryContextMenu(hMenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST, CMF_NORMAL);
|
||||
if (FAILED_UNEXPECTEDLY( hResult))
|
||||
if (FAILED_UNEXPECTEDLY(hResult))
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
InvokeContextMenuCommand(uCommand);
|
||||
|
||||
|
|
Loading…
Reference in a new issue