Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2011-06-21 11:54:21 +0400
committerJb Evain <jbevain@gmail.com>2011-06-21 11:54:21 +0400
commit4b64432f67c3a6650d0401641e548fc2ca32cb4e (patch)
tree5aab195d4f9576fd00196fce52801c4367f0b09a /Mono.Cecil
parent24be9a4ba6bc6b046c65e511ddd5e4c748a3d510 (diff)
Fix to have security attributes with no named arguments pass peverify
Diffstat (limited to 'Mono.Cecil')
-rw-r--r--Mono.Cecil/AssemblyWriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil/AssemblyWriter.cs b/Mono.Cecil/AssemblyWriter.cs
index 5a48d99..bf41d5b 100644
--- a/Mono.Cecil/AssemblyWriter.cs
+++ b/Mono.Cecil/AssemblyWriter.cs
@@ -2450,7 +2450,7 @@ namespace Mono.Cecil {
var count = GetNamedArgumentCount (attribute);
if (count == 0) {
- WriteCompressedUInt32 (0); // length
+ WriteCompressedUInt32 (1); // length
WriteCompressedUInt32 (0); // count
return;
}