Browse Source

* fixed wrong typecast in TNewExeImportedNameTable.GetSize

git-svn-id: trunk@42617 -
nickysn 6 years ago
parent
commit
7038d18d50
1 changed files with 1 additions and 1 deletions
  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);