Explorar o código

* fix mantis #35936 as suggested by Denis Kozlov. fdefaultoutput is a tmemorystream, so it is seekable

git-svn-id: trunk@42936 -
marco %!s(int64=6) %!d(string=hai) anos
pai
achega
dfb00e85a0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/fcl-base/src/csvreadwrite.pp

+ 1 - 0
packages/fcl-base/src/csvreadwrite.pp

@@ -534,6 +534,7 @@ begin
   if StreamSize > 0 then
   begin
     SetLength(Result, StreamSize);
+    FDefaultOutput.Position:=0;
     FDefaultOutput.ReadBuffer(Result[1], StreamSize);
   end;
 end;