mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[EXPLORER][BROWSEUI][SHELL32][NETSHELL] Fix wrong usage of CComPtr
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user