[EXPLORER][BROWSEUI][SHELL32][NETSHELL] Fix wrong usage of CComPtr

This commit is contained in:
Mark Jansen
2022-09-18 20:59:00 +02:00
parent a414c88dae
commit cd2d284142
13 changed files with 23 additions and 41 deletions

View File

@@ -99,9 +99,9 @@ HRESULT STDMETHODCALLTYPE CMenuBand::GetMenuInfo(
if (ppsmc)
{
if (m_psmc)
m_psmc->AddRef();
*ppsmc = m_psmc;
if (*ppsmc)
(*ppsmc)->AddRef();
}
if (puId)
@@ -655,8 +655,8 @@ HRESULT STDMETHODCALLTYPE CMenuBand::GetClient(IUnknown **ppunkClient)
if (m_subMenuChild)
{
m_subMenuChild->AddRef();
*ppunkClient = m_subMenuChild;
(*ppunkClient)->AddRef();
}
return S_OK;