forked from osmocom/wireshark
fix the hresult "filter" fields
svn path=/trunk/; revision=18469
This commit is contained in:
parent
f0f319acf1
commit
39e7f020e6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue