summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm b/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm
index a3cb4f3016..832a2c5463 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm
@@ -194,8 +194,8 @@ sub ParserBitmap($$$$)
sub ParserEnum($$$$)
{
my ($self,$e,$t,$p) = @_;
- my $bt = ($e->{PROPERTIES}->{base_type} or "uint8");
-
+ my $bt = Parse::Pidl::Typelist::enum_type_fn($e);
+
$self->fn_declare($p, "NTSTATUS tdr_$t\_$e->{NAME} (struct tdr_$t *tdr".typearg($t).", enum $e->{NAME} *v)");
$self->pidl("{");
if ($t eq "pull") {