mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 20:01:23 +00:00
[RSHELL]
[SHELL32] * Move the IID_NULL_PPV_ARG macro to the shobj_undoc header, next to the (also ros-specific) IID_PPV_ARG macro, so that it can be used elsewhere. [SHELL32] * Make use of IID_NULL_PPV_ARG in all the calls to GetUIObjectOf, and fix one instance of mismatched riid/pointer. CORE-7330 svn path=/branches/shell-experiments/; revision=63044
This commit is contained in:
parent
8221f567e0
commit
fb6dcedf18
9 changed files with 16 additions and 20 deletions
|
@ -1358,8 +1358,6 @@ HRESULT CMenuSFToolbar::InternalContextMenu(INT iItem, INT index, DWORD_PTR dwDa
|
|||
CComPtr<IContextMenu> contextMenu = NULL;
|
||||
LPCITEMIDLIST pidl = reinterpret_cast<LPCITEMIDLIST>(dwData);
|
||||
|
||||
#define IID_NULL_PPV_ARG(Itype, ppType) IID_##Itype, NULL, reinterpret_cast<void**>((static_cast<Itype**>(ppType)))
|
||||
|
||||
hr = m_shellFolder->GetUIObjectOf(GetToolbar(), 1, &pidl, IID_NULL_PPV_ARG(IContextMenu, &contextMenu));
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue