Browse Source

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 9 năm trước cách đây
mục cha
commit
b9e6938519
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/inc/generic.inc

+ 1 - 1
rtl/inc/generic.inc

@@ -858,7 +858,7 @@ begin
        if assigned(pobjectvmt(vmt)^.parent) then
        if assigned(pobjectvmt(vmt)^.parent) then
          vmt:=pobjectvmt(vmt)^.parent^
          vmt:=pobjectvmt(vmt)^.parent^
        else
        else
-         exit;
+         vmt:=nil;
        {$endif}
        {$endif}
    RunError(219);
    RunError(219);
 end;
 end;