浏览代码

* fixed off by one error when writing a GRPDEF record

git-svn-id: trunk@30413 -
nickysn 10 年之前
父节点
当前提交
1521f88a9d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/omfbase.pas

+ 1 - 2
compiler/omfbase.pas

@@ -671,8 +671,7 @@ implementation
       Segment: Integer;
     begin
       RawRecord.RecordType:=RT_GRPDEF;
-      NextOfs:=1;
-      NextOfs:=RawRecord.WriteIndexedRef(NextOfs,GroupNameIndex);
+      NextOfs:=RawRecord.WriteIndexedRef(0,GroupNameIndex);
       for Segment in SegmentList do
         begin
           if NextOfs>High(RawRecord.RawData) then