make_specfiles: Don't copy the ordinal flag if not appropriate.

This commit is contained in:
Alexandre Julliard 2012-12-19 14:36:24 +01:00
parent 44d5d3951b
commit a0ec065666
1 changed files with 6 additions and 1 deletions

View File

@ -219,7 +219,12 @@ sub update_spec_file($)
goto done;
}
my $flags = ($parent{callconv} ne "stub" || $update_flags) ? $parent{flags} : $descr{flags};
my $flags = $descr{flags};
if ($parent{callconv} ne "stub" || $update_flags)
{
$flags = $parent{flags};
$flags =~ s/-ordinal\s*// if $descr{ordinal} eq "@";
}
if ($parent{callconv} ne "stub" || $parent{args})
{