Don't crash if ShellFolder doesn't implement the IID_ISFHelper interface.

svn path=/trunk/; revision=12763
This commit is contained in:
Filip Navara 2005-01-03 21:19:25 +00:00
parent edc694086f
commit 366252dce4

View file

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