Explorar o código

Correct behavior: if VMT becomes NIL, RTE 219 must be generated as this happens if EXPVMT is not an ancestor of starting VMT

git-svn-id: trunk@34197 -
pierre %!s(int64=9) %!d(string=hai) anos
pai
achega
b9e6938519
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/inc/generic.inc

+ 1 - 1
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;