瀏覽代碼

* fix TParameterLocations.GetLocation()

git-svn-id: trunk@35283 -
svenbarth 8 年之前
父節點
當前提交
990b0e1657
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/typinfo.pp

+ 1 - 1
rtl/objpas/typinfo.pp

@@ -2399,7 +2399,7 @@ begin
   if aIndex >= Count then
     Result := Nil
   else
-    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * Count);
+    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * aIndex);
 end;
 
 { TProcedureParam }