Explorar el Código

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

git-svn-id: trunk@42936 -
marco hace 5 años
padre
commit
dfb00e85a0
Se han modificado 1 ficheros con 1 adiciones y 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;