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;