浏览代码

* Fix GetContent method

git-svn-id: trunk@6454 -
pierre 18 年之前
父节点
当前提交
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;