Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by [EMAIL PROTECTED]

http://bugzilla.ximian.com/show_bug.cgi?id=79693

--- shadow/79693        2006-10-18 17:18:09.000000000 -0400
+++ shadow/79693.tmp.1237       2006-10-22 10:38:10.000000000 -0400
@@ -82,6 +82,24 @@
     {
       OpenFileDialog fd = new OpenFileDialog();
       fd.ShowDialog();
     }
   }
 }
+
+------- Additional Comments From [EMAIL PROTECTED]  2006-10-22 10:38 -------
+If /usr/share/mime directory exists and does not have files,
+fmcr.Init return 0.  It causes this problem.
+
+--- mono-1.1.18/mcs/class/Managed.Windows.Forms/
+System.Windows.Forms/Mime.cs.orig      2006-10-22 22:22:49.000000000 +0900
++++ mono-1.1.18/mcs/class/Managed.Windows.Forms/
+System.Windows.Forms/Mime.cs   2006-10-22 22:25:22.000000000 +0900
+@@ -123,7 +123,7 @@ namespace System.Windows.Forms
+                       FDOMimeConfigReader fmcr = new FDOMimeConfigReader ();
+                       int buffer_length = fmcr.Init ();
+                       
+-                      if (buffer_length != -1) {
++                      if (buffer_length > 0) {
+                               buffer = new byte[ buffer_length ];
+                       }
+               }
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to