From 987b25d7e0fab19533fdbae63de22d74bdd8fbf7 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 5 Aug 2011 23:14:03 +0400 Subject: [PATCH] pidl: for wireshark use only the major of the version --- pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index 45b6c1e5f69..46c9850b562 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -905,16 +905,15 @@ sub ProcessInterface($$) . ", 0x" . substr($if_uuid, 35, 2) . " }"); $self->pidl_def("};"); - my $maj = $x->{VERSION}; + my $maj = 0x0000FFFF & $x->{VERSION}; $maj =~ s/\.(.*)$//g; - $self->pidl_def("static guint32 ver_dcerpc_$x->{NAME} = $maj;"); + $self->pidl_def("static guint16 ver_dcerpc_$x->{NAME} = $maj;"); $self->pidl_def(""); } $return_types{$x->{NAME}} = {}; $self->Interface($x); - $self->pidl_code("\n".DumpFunctionTable($x)); foreach (keys %{$return_types{$x->{NAME}}}) { -- 2.11.4.GIT