You've already forked lazarus-ccr
Fixed a read bug (Stream was always created even when it has been created yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@793 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -89,7 +89,11 @@ begin
|
||||
fsOLE:=TVirtualLayer_OLE.Create(RealFile);
|
||||
fsOLE.Initialize(); //Initialize the OLE container.
|
||||
OLEStream:=fsOLE.CreateStream(VLAbsolutePath,fmOpenRead);
|
||||
AOLEDocument.Stream:=TMemoryStream.Create;
|
||||
if not Assigned(AOLEDocument.Stream) then begin
|
||||
AOLEDocument.Stream:=TMemoryStream.Create;
|
||||
end else begin
|
||||
AOLEDocument.Stream.Clear;
|
||||
end;
|
||||
AOLEDocument.Stream.CopyFrom(OLEStream,OLEStream.Size);
|
||||
OLEStream.Free;
|
||||
fsOLE.Free;
|
||||
|
Reference in New Issue
Block a user