Author: zoltan
Date: 2005-06-06 10:15:28 -0400 (Mon, 06 Jun 2005)
New Revision: 45490
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
Log:
2005-06-06 Zoltan Varga <[EMAIL PROTECTED]>
* Marshal.cs: Add some missing 2.0 attributes.
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2005-06-06 14:14:42 UTC (rev 45489)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2005-06-06 14:15:28 UTC (rev 45490)
@@ -1,3 +1,7 @@
+2005-06-06 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Marshal.cs: Add some missing 2.0 attributes.
+
2005-05-15 Andreas Nahr <[EMAIL PROTECTED]>
* _Attribute.cs
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
2005-06-06 14:14:42 UTC (rev 45489)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
2005-06-06 14:15:28 UTC (rev 45490)
@@ -67,8 +67,14 @@
public extern static IntPtr AllocCoTaskMem (int cb);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState,
Cer.MayFail)]
+#endif
public extern static IntPtr AllocHGlobal (IntPtr cb);
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState,
Cer.MayFail)]
+#endif
public static IntPtr AllocHGlobal (int cb) {
return AllocHGlobal ((IntPtr)cb);
}
@@ -164,6 +170,9 @@
public extern static void FreeCoTaskMem (IntPtr ptr);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState,
Cer.Success)]
+#endif
public extern static void FreeHGlobal (IntPtr hglobal);
#if NET_2_0
@@ -290,6 +299,9 @@
#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState,
Cer.Success)]
+#endif
public static extern int GetLastWin32Error();
[MonoTODO]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches