msvcmaker: Fix the generated filename for the spec file for modules with extensions other than .dll.

This commit is contained in:
Rob Shearman 2008-09-25 16:43:03 +01:00 committed by Alexandre Julliard
parent 1b2cead10b
commit 6d11ecfff4
1 changed files with 4 additions and 1 deletions

View File

@ -420,6 +420,9 @@ sub _generate_dsp($$) {
$progress_current++;
$output->progress("$dsp_file (file $progress_current of $progress_max)");
my $base_module = $module;
$base_module =~ s/\.(?:dll)$//;
my @c_srcs = @{$modules{$module}{c_srcs}};
my @source_files = @{$modules{$module}{source_files}};
my @header_files = @{$modules{$module}{header_files}};
@ -429,7 +432,7 @@ sub _generate_dsp($$) {
$project !~ /^(?:gdi32)_.+?$/ &&
$project !~ /_test$/)
{
push @source_files, "$project.spec";
push @source_files, "$base_module.spec";
@source_files = sort(@source_files);
}