Don't crash if ShellFolder doesn't implement the IID_ISFHelper
interface.
Modified: trunk/reactos/lib/shell32/shlview.c
_____
Modified: trunk/reactos/lib/shell32/shlview.c
--- trunk/reactos/lib/shell32/shlview.c 2005-01-03 20:43:23 UTC (rev
12762)
+++ trunk/reactos/lib/shell32/shlview.c 2005-01-03 21:19:25 UTC (rev
12763)
@@ -1456,6 +1456,9 @@
IShellFolder_QueryInterface(This->pSFParent,
&IID_ISFHelper,
(LPVOID*)&psfhlp);
+ if (psfhlp == NULL)
+ break;
+
if(!(i = ListView_GetSelectedCount(This->hWndList)))
break;
Show replies by date