소스 검색

* fix TParameterLocations.GetLocation()

git-svn-id: trunk@35283 -
svenbarth 9 년 전
부모
커밋
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
   if aIndex >= Count then
     Result := Nil
     Result := Nil
   else
   else
-    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * Count);
+    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * aIndex);
 end;
 end;
 
 
 { TProcedureParam }
 { TProcedureParam }