[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

@@ -321,8 +321,8 @@ HRESULT STDMETHODCALLTYPE CDesktopBrowser::QueryActiveShellView(IShellView **pps
if (ppshv == NULL)
return E_POINTER;
*ppshv = m_ShellView;
if (m_ShellView != NULL)
m_ShellView->AddRef();
if (*ppshv != NULL)
(*ppshv)->AddRef();
return S_OK;
}