mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
pidl: fix generated s3-server in,out,ref qualifiers that are used for buffer allocation.
Guenther
This commit is contained in:
parent
d532197042
commit
2865be8a1c
@ -142,6 +142,13 @@ sub ParseFunction($$)
|
||||
my @dir = @{$_->{DIRECTION}};
|
||||
if (grep(/in/, @dir) and grep(/out/, @dir)) {
|
||||
pidl "r->out.$_->{NAME} = r->in.$_->{NAME};";
|
||||
}
|
||||
}
|
||||
|
||||
foreach (@{$fn->{ELEMENTS}}) {
|
||||
my @dir = @{$_->{DIRECTION}};
|
||||
if (grep(/in/, @dir) and grep(/out/, @dir)) {
|
||||
# noop
|
||||
} elsif (grep(/out/, @dir) and not
|
||||
has_property($_, "represent_as")) {
|
||||
AllocOutVar($_, "r", "r->out.$_->{NAME}", $env);
|
||||
|
Loading…
x
Reference in New Issue
Block a user