[SHELL32]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 7 Jan 2012 15:40:27 +0000 (15:40 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sat, 7 Jan 2012 15:40:27 +0000 (15:40 +0000)
- Check if querying  shell details failed

svn path=/trunk/; revision=54860

reactos/dll/win32/shell32/shlview.cpp

index df934ad..a2d034d 100644 (file)
@@ -1682,7 +1682,12 @@ LRESULT CDefView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
                 if (pSF2Parent)
                 {
                     SHELLDETAILS sd;
-                    pSF2Parent->GetDetailsOf(pidl, lpdi->item.iSubItem, &sd);
+                    if (FAILED(pSF2Parent->GetDetailsOf(pidl, lpdi->item.iSubItem, &sd)))
+                    {
+                        FIXME("failed to get details\n");
+                        break;
+                    }
+
                     if (lpnmh->code == LVN_GETDISPINFOA)
                     {
                         /* shouldn't happen */