mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +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))
|
||||
{
|
||||
if (m_pShellFolderViewDual == NULL)
|
||||
{
|
||||
hr = CDefViewDual_Constructor(riid, (LPVOID*)&m_pShellFolderViewDual);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
hr = m_pShellFolderViewDual->QueryInterface(riid, ppvOut);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue