diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-10-08 20:19:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:34 -0500 |
commit | 36517c801cb7116df635dea8a129730c5bc014ea (patch) | |
tree | 1421a83ddee63d071f1b649dfb30b59ff212fbf5 /source4/pidl/lib/Parse/Pidl/Samba3/Client.pm | |
parent | fa0fbb46b8268ebaec4f8f2c7b18e3ceebb58b53 (diff) | |
download | samba-36517c801cb7116df635dea8a129730c5bc014ea.tar.gz samba-36517c801cb7116df635dea8a129730c5bc014ea.tar.bz2 samba-36517c801cb7116df635dea8a129730c5bc014ea.zip |
r10842: Fix some issues with [out] unions that have a discriminator that is only
[in]
(This used to be commit 3a4086d6142fa73b3adb2d66b1bfc9cd2585f31d)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba3/Client.pm')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba3/Client.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/Client.pm b/source4/pidl/lib/Parse/Pidl/Samba3/Client.pm index ee1ab09324..ceeb81c3d7 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba3/Client.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba3/Client.pm @@ -84,11 +84,12 @@ sub ParseFunction($$) pidl "/* Return variables */"; foreach my $e (@{$fn->{ELEMENTS}}) { next unless (grep(/out/, @{$e->{DIRECTION}})); - + if ($e->{LEVELS}[0]->{TYPE} ne "POINTER") { warning($e->{ORIGINAL}, "First element not a pointer for [out] argument"); next; } + CopyLevel($e, $e->{LEVELS}[1], $e->{NAME}, "r.$e->{NAME}"); } |