mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[SHELL32] Fix using the wrong context menu
This commit is contained in:
parent
dac807e237
commit
b448fbdf59
|
@ -1517,7 +1517,7 @@ HRESULT CDefView::InvokeContextMenuCommand(CComPtr<IContextMenu> &pCM, UINT uCom
|
||||||
cmi.ptInvoke = *pt;
|
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!)
|
// Most of our callers will do this, but in case they don't do that (File menu!)
|
||||||
IUnknown_SetSite(pCM, NULL);
|
IUnknown_SetSite(pCM, NULL);
|
||||||
pCM.Release();
|
pCM.Release();
|
||||||
|
|
Loading…
Reference in a new issue