diff options
author | Zoltan Varga <vargaz@gmail.com> | 2017-01-10 03:09:13 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2017-01-10 03:09:19 +0300 |
commit | f204efcded9ddb17be2e957fa8d394c5cf52ae47 (patch) | |
tree | b85e1945c5b9eae55025b49ccc350efb95fdbaa0 /Mono.Cecil/AssemblyReader.cs | |
parent | 6e592a98ee8398992c010d24029c5d9ff9812f00 (diff) |
[ppdb] Fix the encoding/decoding of empty parts in document names, they should be encoded as index 0. Also, empty parts should be retained during writing, since /foo/bar is encoded as <empty><foo><bar>.
Diffstat (limited to 'Mono.Cecil/AssemblyReader.cs')
-rw-r--r-- | Mono.Cecil/AssemblyReader.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mono.Cecil/AssemblyReader.cs b/Mono.Cecil/AssemblyReader.cs index 5576ee0..f9b84bb 100644 --- a/Mono.Cecil/AssemblyReader.cs +++ b/Mono.Cecil/AssemblyReader.cs @@ -3750,7 +3750,9 @@ namespace Mono.Cecil { if (i > 0 && separator != 0) builder.Append (separator); - builder.Append (reader.ReadUTF8StringBlob (ReadCompressedUInt32 ())); + uint part = ReadCompressedUInt32 (); + if (part != 0) + builder.Append (reader.ReadUTF8StringBlob (part)); } return builder.ToString (); |