Browse Source

* PEAPI.cs: Do not null terminate byte arrays when writing to the
blob stream.

svn path=/trunk/mcs/; revision=28797

Jackson Harper 21 năm trước cách đây
mục cha
commit
662104f9ae
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 5 0
      mcs/class/PEAPI/ChangeLog
  2. 1 2
      mcs/class/PEAPI/PEAPI.cs

+ 5 - 0
mcs/class/PEAPI/ChangeLog

@@ -1,3 +1,8 @@
+2004-06-03  Jackson Harper  <[email protected]>
+
+	* PEAPI.cs: Do not null terminate byte arrays when writing to the
+	blob stream.
+	
 2004-05-25  Jackson Harper  <[email protected]>
 
 	* PEAPI.cs: When writing to the blob heap we always set a size.

+ 1 - 2
mcs/class/PEAPI/PEAPI.cs

@@ -4982,9 +4982,8 @@ if (rsrc != null)
                         if (val == null) {
                                 index = size;
                                 btable [str] = index;
-                                if (prependSize) CompressNum ((uint) str.Length+1);
+                                if (prependSize) CompressNum ((uint) str.Length);
                                 Write (str);
-                                Write ((byte) 0);
                                 size = (uint) Seek (0, SeekOrigin.Current);
                         } else {
                                 index = (uint) val;