mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 05:10:38 +02:00
* don't assume stream is at position=0 mantis #0037332
git-svn-id: trunk@45776 -
This commit is contained in:
parent
c5ea2a50f9
commit
515b92263f
@ -146,7 +146,7 @@ Var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
S:='';
|
S:='';
|
||||||
SetLength(S,Source.Size);
|
SetLength(S,Source.Size-Source.Position);
|
||||||
if Length(S)>0 then
|
if Length(S)>0 then
|
||||||
Source.ReadBuffer(S[1],Length(S));
|
Source.ReadBuffer(S[1],Length(S));
|
||||||
Create(S,AOptions)
|
Create(S,AOptions)
|
||||||
|
Loading…
Reference in New Issue
Block a user