Author: gonzalo
Date: 2005-04-21 18:51:33 -0400 (Thu, 21 Apr 2005)
New Revision: 43421

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/MulticastDelegate.cs
Log:
2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * MulticastDelegate.cs: (GetInvocationList) when building the list that
        is later traversed forward, mark 'this' as the end of the chain.
        Fixes bug #74607.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-04-21 21:05:32 UTC (rev 
43420)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-04-21 22:51:33 UTC (rev 
43421)
@@ -1,3 +1,9 @@
+2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * MulticastDelegate.cs: (GetInvocationList) when building the list that
+       is later traversed forward, mark 'this' as the end of the chain.
+       Fixes bug #74607.
+
 2005-04-19  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Environment.cs: Bump corlib version.

Modified: trunk/mcs/class/corlib/System/MulticastDelegate.cs
===================================================================
--- trunk/mcs/class/corlib/System/MulticastDelegate.cs  2005-04-21 21:05:32 UTC 
(rev 43420)
+++ trunk/mcs/class/corlib/System/MulticastDelegate.cs  2005-04-21 22:51:33 UTC 
(rev 43421)
@@ -103,7 +103,8 @@
                public override Delegate[] GetInvocationList ()
                {
                        MulticastDelegate d;
-                       for (d = (MulticastDelegate) this.Clone (); d.prev != 
null; d = d.prev)
+                       d = (MulticastDelegate) this.Clone ();
+                       for (d.kpm_next = null; d.prev != null; d = d.prev)
                                d.prev.kpm_next = d;
 
                        if (d.kpm_next == null) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to