From 366252dce49e51f373fe71ebba1d5bb7a3d7af7d Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 3 Jan 2005 21:19:25 +0000 Subject: [PATCH] Don't crash if ShellFolder doesn't implement the IID_ISFHelper interface. svn path=/trunk/; revision=12763 --- reactos/lib/shell32/shlview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/lib/shell32/shlview.c b/reactos/lib/shell32/shlview.c index 6c650802be0..b504b75d9cc 100644 --- a/reactos/lib/shell32/shlview.c +++ b/reactos/lib/shell32/shlview.c @@ -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;