diff options
author | Michael Mann <mmann78@netscape.net> | 2014-09-19 22:23:27 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-09-20 11:59:25 +0000 |
commit | 06237e487885387591087646b788925ff38e773b (patch) | |
tree | 07dc54c02e926b8b8a2238676699b4234e518d71 /tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm | |
parent | 1e47e050dcdf30eced478e6909408d79548975c6 (diff) |
proto_tree_add_text -> proto_tree_add_subtree[_format] for DCE/RPC dissectors.
Change-Id: I84755d059ef70ca98b0e7626b6425360daf0529d
Reviewed-on: https://code.wireshark.org/review/4199
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm')
-rw-r--r-- | tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index dd05851c12..1d2bd2fc8c 100644 --- a/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -750,8 +750,7 @@ sub Union($$$$) $self->pidl_code("old_offset = offset;"); $self->pidl_code("if (parent_tree) {"); $self->indent; - $self->pidl_code("item = proto_tree_add_text(parent_tree, tvb, offset, -1, \"$name\");"); - $self->pidl_code("tree = proto_item_add_subtree(item, ett_$ifname\_$name);"); + $self->pidl_code("tree = proto_tree_add_subtree(parent_tree, tvb, offset, -1, ett_$ifname\_$name, &item, \"$name\");"); $self->deindent; $self->pidl_code("}"); |