mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 11:00:28 +02:00
* fixed off by one error when writing a GRPDEF record
git-svn-id: trunk@30413 -
This commit is contained in:
parent
a9f10f60eb
commit
1521f88a9d
@ -671,8 +671,7 @@ implementation
|
|||||||
Segment: Integer;
|
Segment: Integer;
|
||||||
begin
|
begin
|
||||||
RawRecord.RecordType:=RT_GRPDEF;
|
RawRecord.RecordType:=RT_GRPDEF;
|
||||||
NextOfs:=1;
|
NextOfs:=RawRecord.WriteIndexedRef(0,GroupNameIndex);
|
||||||
NextOfs:=RawRecord.WriteIndexedRef(NextOfs,GroupNameIndex);
|
|
||||||
for Segment in SegmentList do
|
for Segment in SegmentList do
|
||||||
begin
|
begin
|
||||||
if NextOfs>High(RawRecord.RawData) then
|
if NextOfs>High(RawRecord.RawData) then
|
||||||
|
Loading…
Reference in New Issue
Block a user