浏览代码

Fix error in MDDefScopeElems.cs KeyTokenBytes()

k_john_gough_cp 14 年之前
父节点
当前提交
dee552a8c6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;