mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 12:39:39 +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-}
|
{$I-}
|
||||||
case Origin of
|
case Origin of
|
||||||
soFromBeginning :
|
soFromBeginning :
|
||||||
System.Seek(FHandle,Offset);
|
begin
|
||||||
|
System.Seek(FHandle,Offset);
|
||||||
|
l:=Offset;
|
||||||
|
end;
|
||||||
soFromCurrent :
|
soFromCurrent :
|
||||||
begin
|
begin
|
||||||
l:=System.FilePos(FHandle);
|
l:=System.FilePos(FHandle);
|
||||||
@ -435,7 +438,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$I+}
|
{$I+}
|
||||||
CStreamError:=IOResult;
|
CStreamError:=IOResult;
|
||||||
Result:=CStreamError;
|
Result:=l;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user