dlls/shell32/shlview.c

Ge van Geldorp gvg at reactos.com
Sun Feb 13 17:04:14 CST 2005


Changelog:
  Filip Navara <xnavara at volny.cz>
  Don't crash if ShellFolder doesn't implement the IID_ISFHelper interface.

Index: dlls/shell32/shlview.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlview.c,v
retrieving revision 1.109
diff -u -r1.109 shlview.c
--- dlls/shell32/shlview.c	21 Jan 2005 10:16:11 -0000	1.109
+++ dlls/shell32/shlview.c	13 Feb 2005 23:01:57 -0000
@@ -1457,6 +1457,9 @@
 		IShellFolder_QueryInterface(This->pSFParent, &IID_ISFHelper,
 		 	(LPVOID*)&psfhlp);
 
+		if (psfhlp == NULL)
+		  break;
+
 		if(!(i = ListView_GetSelectedCount(This->hWndList)))
 		  break;
 



More information about the wine-patches mailing list