From 39e7f020e6e1aac5a1fbd9e33c6791754eea9599 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Thu, 15 Jun 2006 11:42:47 +0000 Subject: [PATCH] fix the hresult "filter" fields svn path=/trunk/; revision=18469 --- epan/dissectors/packet-dcom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-dcom.c b/epan/dissectors/packet-dcom.c index e2310aee9c..f41dd6e1a6 100644 --- a/epan/dissectors/packet-dcom.c +++ b/epan/dissectors/packet-dcom.c @@ -778,7 +778,7 @@ dissect_dcom_indexed_WORD(tvbuff_t *tvb, int offset, packet_info *pinfo, if (tree) { /* special formatted output of indexed value */ - proto_tree_add_uint_format(tree, hf_dcom_hresult, tvb, offset, 2, (drep[0] & 0x10), + proto_tree_add_uint_format(tree, hfindex, tvb, offset, 2, (drep[0] & 0x10), "%s[%u]: 0x%04x", proto_registrar_get_name(hfindex), field_index, u16WORD); @@ -808,7 +808,7 @@ dissect_dcom_indexed_DWORD(tvbuff_t *tvb, int offset, packet_info *pinfo, if (tree) { /* special formatted output of indexed value */ - proto_tree_add_uint_format(tree, hf_dcom_hresult, tvb, offset, 4, (drep[0] & 0x10), + proto_tree_add_uint_format(tree, hfindex, tvb, offset, 4, (drep[0] & 0x10), "%s[%u]: 0x%08x", proto_registrar_get_name(hfindex), field_index, u32DWORD); @@ -870,7 +870,7 @@ dissect_dcom_indexed_HRESULT(tvbuff_t *tvb, int offset, packet_info *pinfo, if (tree) { /* special formatted output of indexed value */ - item = proto_tree_add_uint_format(tree, hf_dcom_hresult, tvb, offset-4, 4, (drep[0] & 0x10), + item = proto_tree_add_uint_format(tree, hf_dcom_hresult, tvb, offset-4, 4, u32HResult, "HResult[%u]: %s (0x%08x)", field_index, val_to_str(u32HResult, dcom_hresult_vals, "Unknown"), u32HResult);