Author: zoltan
Date: 2005-06-02 16:36:13 -0400 (Thu, 02 Jun 2005)
New Revision: 45341
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/reflection.c
Log:
2005-06-02 Zoltan Varga <[EMAIL PROTECTED]>
* reflection.c (mono_image_get_method_info): Fix the case when the
charset is empty.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-06-02 20:28:23 UTC (rev 45340)
+++ trunk/mono/mono/metadata/ChangeLog 2005-06-02 20:36:13 UTC (rev 45341)
@@ -1,3 +1,8 @@
+2005-06-02 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * reflection.c (mono_image_get_method_info): Fix the case when the
+ charset is empty.
+
2005-06-02 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* object.c: Added missing null check in
Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c 2005-06-02 20:28:23 UTC (rev
45340)
+++ trunk/mono/mono/metadata/reflection.c 2005-06-02 20:36:13 UTC (rev
45341)
@@ -1378,7 +1378,7 @@
if (mb->dll) { /* It's a P/Invoke method */
guint32 moduleref;
/* map CharSet values to on-disk values */
- int ncharset = (mb->charset ? (mb->charset - 1) * 2 : 1);
+ int ncharset = (mb->charset ? (mb->charset - 1) * 2 : 0);
int extra_flags = mb->extra_flags;
table = &assembly->tables [MONO_TABLE_IMPLMAP];
table->rows ++;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches