diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 41bf3e33a6..6dc5e5f92c 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -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;