Author: andreia
Date: 2007-01-05 12:54:05 -0500 (Fri, 05 Jan 2007)
New Revision: 70544
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
Log:
Fixes GetMessage exception that was keeping winforms apps from running.
Fix changelog dates
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-05 17:26:54 UTC (rev 70543)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-05 17:54:05 UTC (rev 70544)
@@ -1,3 +1,8 @@
+2007-01-05 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
+ doesn't blow up with a null exception on marshalling.
+
2007-01-05 Jonathan Pobst <[EMAIL PROTECTED]>
* Control.cs: Implement several 2.0 protected properties and methods.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
2007-01-05 17:26:54 UTC (rev 70543)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
2007-01-05 17:54:05 UTC (rev 70544)
@@ -1526,6 +1526,7 @@
private bool GetMessage(ref MSG msg, IntPtr hWnd, int
wFilterMin, int wFilterMax, bool blocking) {
bool result;
+ msg.refobject = 0;
if (RetrieveMessage(ref msg)) {
return true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches