Author: jbevain
Date: 2005-12-13 11:57:00 -0500 (Tue, 13 Dec 2005)
New Revision: 54305
Modified:
trunk/cecil/lib/ChangeLog
trunk/cecil/lib/Mono.Cecil.Metadata/MetadataWriter.cs
Log:
2005-12-13 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil.Metadata/MetadataWriter.cs:
Correctly write embedded resources.
Fix #76963.
Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog 2005-12-13 16:00:50 UTC (rev 54304)
+++ trunk/cecil/lib/ChangeLog 2005-12-13 16:57:00 UTC (rev 54305)
@@ -1,3 +1,9 @@
+2005-12-13 Jb Evain <[EMAIL PROTECTED]>
+
+ * Mono.Cecil.Metadata/MetadataWriter.cs:
+ Correctly write embedded resources.
+ Fix #76963.
+
2005-12-03 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil/MethodSpecification.cs:
Modified: trunk/cecil/lib/Mono.Cecil.Metadata/MetadataWriter.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Metadata/MetadataWriter.cs 2005-12-13
16:00:50 UTC (rev 54304)
+++ trunk/cecil/lib/Mono.Cecil.Metadata/MetadataWriter.cs 2005-12-13
16:57:00 UTC (rev 54305)
@@ -229,6 +229,7 @@
public uint AddResource (byte [] data)
{
uint offset = (uint) m_resWriter.BaseStream.Position;
+ m_resWriter.Write (data.Length);
m_resWriter.Write (data);
m_resWriter.QuadAlign ();
return offset;
@@ -244,7 +245,7 @@
{
if (m_assembly.Name.PublicKey != null) {
// in fx 2.0 the key may be from 384 to 16384
bits
- // so we must calculate the signature size
based on
+ // so we must calculate the signature size
based on
// the size of the public key (minus the 32
byte header)
int size = m_assembly.Name.PublicKey.Length;
if (size > 0)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches