summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/ndr.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/build/pidl/ndr.pm b/source4/build/pidl/ndr.pm
index cc11fdec86..f953445e89 100644
--- a/source4/build/pidl/ndr.pm
+++ b/source4/build/pidl/ndr.pm
@@ -166,15 +166,15 @@ sub array_type($)
sub need_wire_pointer($)
{
my $e = shift;
- my $pt;
-
- return 0 unless ($pt = pointer_type($e));
- if ($pt ne "ref") {
- return 1;
- } else {
- return 0;
+ my $n = $e->{POINTERS};
+ my $pt = pointer_type($e);
+
+ if (defined($pt) and $pt eq "ref") {
+ $n--;
}
+
+ return $n;
}
# determine if an element is a pure scalar. pure scalars do not