mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[SHELL32]
- CDefView: Add a missing error check. CORE-11594 svn path=/trunk/; revision=72045
This commit is contained in:
parent
80e79970b3
commit
5575b8bacc
|
@ -2315,7 +2315,13 @@ HRESULT WINAPI CDefView::GetItemObject(UINT uItem, REFIID riid, LPVOID *ppvOut)
|
||||||
else if (IsEqualIID(riid, IID_IDispatch))
|
else if (IsEqualIID(riid, IID_IDispatch))
|
||||||
{
|
{
|
||||||
if (m_pShellFolderViewDual == NULL)
|
if (m_pShellFolderViewDual == NULL)
|
||||||
|
{
|
||||||
hr = CDefViewDual_Constructor(riid, (LPVOID*)&m_pShellFolderViewDual);
|
hr = CDefViewDual_Constructor(riid, (LPVOID*)&m_pShellFolderViewDual);
|
||||||
|
if (FAILED_UNEXPECTEDLY(hr))
|
||||||
|
{
|
||||||
|
return hr;
|
||||||
|
}
|
||||||
|
}
|
||||||
hr = m_pShellFolderViewDual->QueryInterface(riid, ppvOut);
|
hr = m_pShellFolderViewDual->QueryInterface(riid, ppvOut);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue