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-11-02 19:10:34 +0400
committerJb Evain <jbevain@gmail.com>2011-11-02 19:10:34 +0400
commitcaf647b9dedb83c1090576e900fedeb23abe8575 (patch)
treee53072764bdd94d892b96e4d069b4f6930a35d4b /symbols
parent669d3b7a5fc0d17d49d0542ec25be674eb878815 (diff)
Use net_2_0 compatible code
Diffstat (limited to 'symbols')
-rw-r--r--symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs b/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs
index 2ebf868..6d581fd 100644
--- a/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs
+++ b/symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs
@@ -507,13 +507,14 @@ namespace Mono.Cecil.Pdb {
{
var length = str.Length + 1 >= bufferSize ? bufferSize - 1 : (uint) str.Length;
chars = length + 1;
+ var offset = 0;
for (int i = 0; i < length; i++) {
- Marshal.WriteInt16 (buffer, str [i]);
- buffer += 2;
+ Marshal.WriteInt16 (buffer, offset, str [i]);
+ offset += 2;
}
- Marshal.WriteInt16 (buffer, 0);
+ Marshal.WriteInt16 (buffer, offset, 0);
}
public uint GetInterfaceImplProps (uint iiImpl, out uint pClass)