Преглед на файлове

* Fix make_dllmangledname: Use computed dllprefix instead of dllname

git-svn-id: trunk@17879 -
pierre преди 14 години
родител
ревизия
63f38e6c03
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      compiler/symdef.pas

+ 2 - 2
compiler/symdef.pas

@@ -972,9 +972,9 @@ implementation
               dllprefix:='_$dll$'+dllprefix+'$';
 
             if importname<>'' then
-              result:=dllname+importname
+              result:=dllprefix+importname
             else
-              result:=dllname+'_index_'+tostr(import_nr);
+              result:=dllprefix+'_index_'+tostr(import_nr);
             { Replace ? and @ in import name, since GNU AS does not allow these characters in symbol names. }
             { This allows to import VC++ mangled names from DLLs. }
             { Do not perform replacement, if external symbol is not imported from DLL. }