Browse Source

* fix * support for resources

git-svn-id: trunk@5149 -
peter 19 years ago
parent
commit
242113b873
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/scandir.pas

+ 1 - 1
compiler/scandir.pas

@@ -916,7 +916,7 @@ implementation
           if Assigned(Current_Module) then
           if Assigned(Current_Module) then
             begin
             begin
               delete(S,1,1);
               delete(S,1,1);
-              insert(ExtractFileName(current_module.mainsource^),S,1);
+              insert(ExtractFileName(ChangeFileExt(current_module.mainsource^,'')),S,1 );
             end;
             end;
         s:=ChangeFileExt(FixFileName(s),target_info.resext);
         s:=ChangeFileExt(FixFileName(s),target_info.resext);
         if target_info.res<>res_none then
         if target_info.res<>res_none then