diff --git a/rtl/inc/generic.inc b/rtl/inc/generic.inc index 8ffcb4ba4c..d31e070208 100644 --- a/rtl/inc/generic.inc +++ b/rtl/inc/generic.inc @@ -858,7 +858,7 @@ begin if assigned(pobjectvmt(vmt)^.parent) then vmt:=pobjectvmt(vmt)^.parent^ else - exit; + vmt:=nil; {$endif} RunError(219); end;