[SHELL32] Revert CDefView::FillFileMenu (#5278)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 23 May 2023 08:38:12 +0000 (17:38 +0900)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 08:38:12 +0000 (17:38 +0900)
CORE-9467, CORE-18429, CORE-11797

dll/win32/shell32/CDefView.cpp

index 7cf9160..880afa6 100644 (file)
@@ -1357,7 +1357,7 @@ HRESULT CDefView::FillFileMenu()
         m_pFileMenu.Release();
     }
     /* Store the context menu in m_pFileMenu and keep it in order to invoke the selected command later on */
         m_pFileMenu.Release();
     }
     /* Store the context menu in m_pFileMenu 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_pFileMenu));
+    HRESULT hr = GetItemObject(SVGIO_SELECTION, IID_PPV_ARG(IContextMenu, &m_pFileMenu));
     if (FAILED_UNEXPECTEDLY(hr))
         return hr;
 
     if (FAILED_UNEXPECTEDLY(hr))
         return hr;