mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:59:11 +02:00
* Fix overflow in initialization of return value
This commit is contained in:
parent
91284ba543
commit
8527cb17f8
@ -2265,8 +2265,6 @@ begin
|
|||||||
if aRecord=Nil then exit;
|
if aRecord=Nil then exit;
|
||||||
FieldTable:=aRecord^.ExtendedFields;
|
FieldTable:=aRecord^.ExtendedFields;
|
||||||
if FieldTable=Nil then exit;
|
if FieldTable=Nil then exit;
|
||||||
if FieldList<>Nil then
|
|
||||||
FillChar(FieldList^[Result],FieldTable^.FieldCount*sizeof(Pointer),0);
|
|
||||||
For I:=0 to FieldTable^.FieldCount-1 do
|
For I:=0 to FieldTable^.FieldCount-1 do
|
||||||
begin
|
begin
|
||||||
FieldEntry:=FieldTable^.Field[i];
|
FieldEntry:=FieldTable^.Field[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user