https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b448fbdf590ed62f7b7e4…
commit b448fbdf590ed62f7b7e4cd22a18852206b8980e
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Oct 15 11:09:25 2022 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Oct 15 11:09:25 2022 +0200
[SHELL32] Fix using the wrong context menu
---
dll/win32/shell32/CDefView.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index fbee323ee7d..321fb53ae08 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -1517,7 +1517,7 @@ HRESULT
CDefView::InvokeContextMenuCommand(CComPtr<IContextMenu> &pCM, UINT uCom
cmi.ptInvoke = *pt;
}
- HRESULT hr = m_pCM->InvokeCommand((LPCMINVOKECOMMANDINFO)&cmi);
+ HRESULT hr = pCM->InvokeCommand((LPCMINVOKECOMMANDINFO)&cmi);
// Most of our callers will do this, but in case they don't do that (File menu!)
IUnknown_SetSite(pCM, NULL);
pCM.Release();