Browse Source

* Result needs to be assigned when doing FindInFieldTable

Michaël Van Canneyt 3 tháng trước cách đây
mục cha
commit
cc20d1fe06
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/objpas/classes/reader.inc

+ 1 - 1
rtl/objpas/classes/reader.inc

@@ -1956,7 +1956,7 @@ begin
   Result:=FindInFieldTable(Root);
   
   if (Result=nil) and assigned(LookupRoot) and (LookupRoot<>Root) then
-    FindInFieldTable(LookupRoot);
+    Result:=FindInFieldTable(LookupRoot);
 
   if (Result=nil) and assigned(OnFindComponentClassEx) then
     OnFindComponentClassEx(Self, AName, anUnitName, AClassName, Result);