[SHELL32]
[reactos.git] / reactos / dll / win32 / shell32 / CDefView.cpp
index 7a92457..9780c11 100644 (file)
@@ -80,6 +80,7 @@ class CDefView :
         CComPtr<IShellFolder2>    m_pSF2Parent;
         CComPtr<IShellBrowser>    m_pShellBrowser;
         CComPtr<ICommDlgBrowser>  m_pCommDlgBrowser;
+        CComPtr<IShellFolderViewDual> m_pShellFolderViewDual;
         CListView                 m_ListView;
         HWND                      m_hWndParent;
         FOLDERSETTINGS            m_FolderSettings;
@@ -2302,6 +2303,12 @@ HRESULT WINAPI CDefView::GetItemObject(UINT uItem, REFIID riid, LPVOID *ppvOut)
                     return hr;
                 *ppvOut = pcm;
             }
+            else if (IsEqualIID(riid, IID_IDispatch))
+            {
+                if (m_pShellFolderViewDual == NULL)
+                    hr = CDefViewDual_Constructor(riid, (LPVOID*)&m_pShellFolderViewDual);
+                hr = m_pShellFolderViewDual->QueryInterface(riid, ppvOut);
+            }
             break;
 
         case SVGIO_SELECTION: