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

interface.
This commit is contained in:
Filip Navara 2005-02-14 11:06:48 +00:00 committed by Alexandre Julliard
parent 68e1208f59
commit 4d20d165ff

View File

@ -1457,6 +1457,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;