Make dumping more robust

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Apr 11 12:18:35 CDT 2002


Changelog
	dlls/shell32/pidl.c: pdump
	Check for NULL returned from ILGetNext
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/shell32/pidl.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/pidl.c,v
retrieving revision 1.69
diff -u -r1.69 pidl.c
--- wine/dlls/shell32/pidl.c	3 Apr 2002 22:52:52 -0000	1.69
+++ wine/dlls/shell32/pidl.c	11 Apr 2002 17:15:47 -0000
@@ -76,7 +76,7 @@
 
 	      pidltemp = ILGetNext(pidltemp);
 
-	    } while (pidltemp->mkid.cb);
+	    } while (pidltemp && pidltemp->mkid.cb);
 	  }
 	  else
 	  {
@@ -584,7 +584,6 @@
 	  memcpy(((BYTE *)pidlNew)+len1,pidl2,len2);
 	}
 
-	/*  TRACE(pidl,"--new pidl=%p\n",pidlNew);*/
 	return pidlNew;
 }
 /*************************************************************************



More information about the wine-patches mailing list