mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 20:29:34 +02:00
* fix when dataset is empty, must not read entire stream
git-svn-id: trunk@5602 -
This commit is contained in:
parent
76a3e61135
commit
f64ec89e72
@ -476,7 +476,7 @@ begin
|
||||
CheckMarker(F,smData);
|
||||
Size:=ReadInteger(F);
|
||||
FStream.Clear;
|
||||
FStream.CopyFrom(F,Size);
|
||||
if Size>0 then FStream.CopyFrom(F,Size);
|
||||
FRecCount:=Size div FRecSize;
|
||||
FCurrRecNo:=-1;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user