Explorar el Código

* fixed wrong typecast in TNewExeImportedNameTable.GetSize

git-svn-id: trunk@42617 -
nickysn hace 6 años
padre
commit
7038d18d50
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/ogomf.pas

+ 1 - 1
compiler/ogomf.pas

@@ -3829,7 +3829,7 @@ cleanup:
         Result:=1;
         { each entry is 1 byte, plus the length of the name }
         for i:=0 to Count-1 do
-          Inc(Result,1+Length(TNewExeResidentNameTableEntry(Items[i]).Name));
+          Inc(Result,1+Length(TNewExeImportedNameTableEntry(Items[i]).Name));
       end;
 
     procedure TNewExeImportedNameTable.AddImportedName(const name: TSymStr);