* ensure that _LookupVtableInfoEx isn't called with a type that needs special handling as we can't (or won't) really cover that using some generic RTTI handling

This commit is contained in:
Sven/Sarah Barth 2023-03-28 23:13:34 +02:00
parent 939f7345ac
commit db66d8f057

View File

@ -3382,6 +3382,10 @@ end;
function _LookupVtableInfoEx(AGInterface: TDefaultGenericInterface; ATypeInfo: PTypeInfo; ASize: SizeInt;
AFactory: THashFactoryClass): Pointer;
begin
if ATypeInfo^.Kind in TComparerService.UseBinaryMethods then begin
System.Error(reInvalidCast);
Exit(Nil);
end;
case AGInterface of
giComparer:
Exit(