mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 22:50:14 +02:00
* TCFileStream.Seek should return the new position
git-svn-id: trunk@6969 -
This commit is contained in:
parent
82b973937d
commit
66a6764d8a
@ -417,7 +417,10 @@ begin
|
||||
{$I-}
|
||||
case Origin of
|
||||
soFromBeginning :
|
||||
System.Seek(FHandle,Offset);
|
||||
begin
|
||||
System.Seek(FHandle,Offset);
|
||||
l:=Offset;
|
||||
end;
|
||||
soFromCurrent :
|
||||
begin
|
||||
l:=System.FilePos(FHandle);
|
||||
@ -435,7 +438,7 @@ begin
|
||||
end;
|
||||
{$I+}
|
||||
CStreamError:=IOResult;
|
||||
Result:=CStreamError;
|
||||
Result:=l;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user