Author: jbevain
Date: 2006-01-18 20:52:23 -0500 (Wed, 18 Jan 2006)
New Revision: 55764

Modified:
   trunk/cecil/lib/ChangeLog
   trunk/cecil/lib/Mono.Cecil/AssemblyName.cs
Log:
2006-01-19  Jb Evain  <[EMAIL PROTECTED]>

        * Mono.Cecil/AssemblyName.cs:
                Fix computation of public key token.


Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog   2006-01-18 22:48:37 UTC (rev 55763)
+++ trunk/cecil/lib/ChangeLog   2006-01-19 01:52:23 UTC (rev 55764)
@@ -1,3 +1,8 @@
+2006-01-19  Jb Evain  <[EMAIL PROTECTED]>
+
+       * Mono.Cecil/AssemblyName.cs:
+               Fix computation of public key token.
+
 2006-01-18  Jb Evain  <[EMAIL PROTECTED]>
 
        * Mono.Cecil.Cil/CodeWriter.cs

Modified: trunk/cecil/lib/Mono.Cecil/AssemblyName.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/AssemblyName.cs  2006-01-18 22:48:37 UTC (rev 
55763)
+++ trunk/cecil/lib/Mono.Cecil/AssemblyName.cs  2006-01-19 01:52:23 UTC (rev 
55764)
@@ -81,7 +81,7 @@
                public byte [] PublicKeyToken {
                        get {
 #if !CF_1_0
-                               if ((m_publicKeyToken == null) && (m_publicKey 
!= null)) {
+                               if ((m_publicKeyToken == null || 
m_publicKeyToken.Length == 0) && (m_publicKey != null && m_publicKey.Length > 
0)) {
                                        HashAlgorithm ha = null;
                                        switch (m_hashAlgo) {
                                        case AssemblyHashAlgorithm.Reserved:

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

Reply via email to