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);