Browse Source

* we should zero out the data instead of the pointer

git-svn-id: trunk@1253 -
florian 20 năm trước cách đây
mục cha
commit
468c2476de
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/inc/elfres32.inc

+ 1 - 1
rtl/inc/elfres32.inc

@@ -82,7 +82,7 @@ begin
     begin
     FPCRuntimeResourceInfoArray:=GetMem(SizeOf(TFPCRuntimeResourceInfo)*ResInfoCount);
     { we must zero out this because name is an ansistring }
-    fillchar(FPCRuntimeResourceInfoArray,0,SizeOf(TFPCRuntimeResourceInfo)*ResInfoCount);
+    fillchar(FPCRuntimeResourceInfoArray^,0,SizeOf(TFPCRuntimeResourceInfo)*ResInfoCount);
 
     for i:=0 to ResInfoCount-1 do
       begin