diff options
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r-- | source4/build/pidl/header.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index 5068bdd1b3..561a16a1e2 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -59,8 +59,15 @@ sub DumpElement($) $res .= "*"; } } + if (defined $element->{ARRAY_LEN} && + $element->{ARRAY_LEN} eq "*") { + $res .= "*"; + } $res .= "$element->{NAME}"; - (defined $element->{ARRAY_LEN}) && ($res .= "[$element->{ARRAY_LEN}]"); + if (defined $element->{ARRAY_LEN} && + $element->{ARRAY_LEN} ne "*") { + $res .= "[$element->{ARRAY_LEN}]"; + } $res .= ";\n"; } |