No change in the generated code.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14213
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit
8cdf7af43a365b0545562033f6c51150f2fbb3a4)
$result_size++;
}
- if ($fn->{RETURN_TYPE}) {
- $result_size++ unless ($fn->{RETURN_TYPE} eq "WERROR" or $fn->{RETURN_TYPE} eq "NTSTATUS");
+ my $is_raisable_return = 0;
+ if ($fn->{RETURN_TYPE} and ($fn->{RETURN_TYPE} eq "WERROR" or $fn->{RETURN_TYPE} eq "NTSTATUS")) {
+ $is_raisable_return = 1;
+ }
+
+ if ($fn->{RETURN_TYPE} and not $is_raisable_return) {
+ $result_size++;
}
my $i = 0;