[SHELL32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 29 Jul 2016 12:03:20 +0000 (12:03 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 29 Jul 2016 12:03:20 +0000 (12:03 +0000)
- CDefView: Add a missing error check.
CORE-11594

svn path=/trunk/; revision=72045

reactos/dll/win32/shell32/CDefView.cpp

index 6e4c47c..9a31a57 100644 (file)
@@ -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;