Don't crash if ShellFolder doesn't implement the IID_ISFHelper interface.
authorFilip Navara <filip.navara@gmail.com>
Mon, 3 Jan 2005 21:19:25 +0000 (21:19 +0000)
committerFilip Navara <filip.navara@gmail.com>
Mon, 3 Jan 2005 21:19:25 +0000 (21:19 +0000)
svn path=/trunk/; revision=12763

reactos/lib/shell32/shlview.c

index 6c65080..b504b75 100644 (file)
@@ -1456,6 +1456,9 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
                IShellFolder_QueryInterface(This->pSFParent, &IID_ISFHelper,\r
                        (LPVOID*)&psfhlp);\r
 \r
+               if (psfhlp == NULL)\r
+                 break;\r
+\r
                if(!(i = ListView_GetSelectedCount(This->hWndList)))\r
                  break;\r
 \r