Author: jbevain
Date: 2005-06-21 05:44:58 -0400 (Tue, 21 Jun 2005)
New Revision: 46286

Modified:
   trunk/cecil/lib/ChangeLog
   trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs
Log:
2005-06-21  Jb Evain  <[EMAIL PROTECTED]>

        * Mono.Cecil.Implem/ReflectionReader.cs: Correct a bug that prevents
                assemblies to be readed if they have an entrypoint. Suggestion 
by
                Mario Sopena


Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog   2005-06-21 08:59:00 UTC (rev 46285)
+++ trunk/cecil/lib/ChangeLog   2005-06-21 09:44:58 UTC (rev 46286)
@@ -1,3 +1,9 @@
+2005-06-21  Jb Evain  <[EMAIL PROTECTED]>
+
+       * Mono.Cecil.Implem/ReflectionReader.cs: Correct a bug that prevents
+               assemblies to be readed if they have an entrypoint. Suggestion 
by
+               Mario Sopena
+
 2005-06-12  Jb Evain  <[EMAIL PROTECTED]>
 
        * Mono.Cecil.Implem/TypeDefinition.cs: Set the declaring type

Modified: trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs       2005-06-21 
08:59:00 UTC (rev 46285)
+++ trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs       2005-06-21 
09:44:58 UTC (rev 46286)
@@ -391,7 +391,7 @@
                 }
             }
 
-            int eprid = (int) m_reader.Image.CLIHeader.EntryPointToken;
+            int eprid = (int) m_reader.Image.CLIHeader.EntryPointToken & 
0x00ffffff;
             if (eprid != 0)
                 m_module.Assembly.EntryPoint = GetMethodDefAt (eprid);
         }

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

Reply via email to