Explorar o código

Fix error in MDDefScopeElems.cs KeyTokenBytes()

k_john_gough_cp %!s(int64=14) %!d(string=hai) anos
pai
achega
dee552a8c6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      PERWAPI/MDDefScopeElems.cs

+ 1 - 0
PERWAPI/MDDefScopeElems.cs

@@ -193,6 +193,7 @@ namespace QUT.PERWAPI
         public byte[] KeyTokenBytes()
         {
             if (this.publicKey != null &&
+                this.publicKey.Length != 0 &&
                 this.hashAlgId == HashAlgorithmType.SHA1)
             {
                 int ix, ofst;