Explorar o código

* Result needs to be assigned when doing FindInFieldTable

Michaël Van Canneyt hai 5 meses
pai
achega
cc20d1fe06
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);