summaryrefslogtreecommitdiff
path: root/source4/build/pidl/header.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r--source4/build/pidl/header.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm
index c49f60ce8b..00321fef93 100644
--- a/source4/build/pidl/header.pm
+++ b/source4/build/pidl/header.pm
@@ -185,7 +185,10 @@ sub HeaderType($$$)
return;
}
- my $dt = $NdrParser::typedefs{$e->{TYPE}}->{DATA};
+ my $dt;
+ if (my $t = NdrParser::get_typedef($e->{TYPE})) {
+ $dt = $t->{DATA};
+ }
if ($data =~ "string") {
pidl "const char *";