* TCFileStream.Seek should return the new position

git-svn-id: trunk@6969 -
This commit is contained in:
florian 2007-03-24 10:38:36 +00:00
parent 82b973937d
commit 66a6764d8a

View File

@ -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;