Commit 4d20d165 authored by Filip Navara's avatar Filip Navara Committed by Alexandre Julliard

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

interface.
parent 68e1208f
...@@ -1457,6 +1457,9 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn ...@@ -1457,6 +1457,9 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
IShellFolder_QueryInterface(This->pSFParent, &IID_ISFHelper, IShellFolder_QueryInterface(This->pSFParent, &IID_ISFHelper,
(LPVOID*)&psfhlp); (LPVOID*)&psfhlp);
if (psfhlp == NULL)
break;
if(!(i = ListView_GetSelectedCount(This->hWndList))) if(!(i = ListView_GetSelectedCount(This->hWndList)))
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment