2
0
Эх сурвалжийг харах

* Fix GetContent method

git-svn-id: trunk@6454 -
pierre 18 жил өмнө
parent
commit
a8d1853351
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      fcl/db/dbwhtml.pp

+ 2 - 2
fcl/db/dbwhtml.pp

@@ -598,8 +598,8 @@ begin
   If Assigned(FContents) then
     begin
     SetLength(Result,FContents.Size);
-    If (FContents.Size>0) then
-      Move(FContents,Result[1],FContents.Size);
+    If (FContents.Size>0) and assigned(FContents.Memory) then
+      Move(FContents.Memory^,Result[1],FContents.Size);
     end;
 end;