[SHELL32] Fix using the wrong context menu

This commit is contained in:
Mark Jansen 2022-10-15 11:09:25 +02:00
parent dac807e237
commit b448fbdf59
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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();