Fix a few proto_tree_add_item() encoding args.
svn path=/trunk/; revision=39519
This commit is contained in:
parent
f169a2063f
commit
4748747a51
|
@ -1835,7 +1835,7 @@ dissect_tds_type_varbyte(tvbuff_t *tvb, guint *offset, packet_info *pinfo, proto
|
|||
proto_tree *sub_tree = NULL;
|
||||
proto_item *item = NULL, *length_item = NULL;
|
||||
|
||||
item = proto_tree_add_item(tree, hf, tvb, *offset, 0, TRUE);
|
||||
item = proto_tree_add_item(tree, hf, tvb, *offset, 0, ENC_NA);
|
||||
sub_tree = proto_item_add_subtree(item, ett_tds_type_varbyte);
|
||||
|
||||
if(plp) {
|
||||
|
|
|
@ -494,9 +494,9 @@ dissect_usb_hid_report_item(packet_info *pinfo _U_, proto_tree *parent_tree, tvb
|
|||
|
||||
item = proto_tree_add_text(subtree, tvb, offset, 1, "Header");
|
||||
tree = proto_item_add_subtree(item, ett_usb_hid_item_header);
|
||||
proto_tree_add_item(tree, hf_usb_hid_item_bSize, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
proto_tree_add_item(tree, hf_usb_hid_item_bType, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
proto_tree_add_item(tree, hf_usb_hid_curitem_bTag, tvb, offset, 1, TRUE);
|
||||
proto_tree_add_item(tree, hf_usb_hid_item_bSize, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
proto_tree_add_item(tree, hf_usb_hid_item_bType, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
proto_tree_add_item(tree, hf_usb_hid_curitem_bTag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
offset++;
|
||||
if ((bType == 3) && (bTag == 16)) {
|
||||
/* Long item */
|
||||
|
|
|
@ -1704,7 +1704,7 @@ dissect_nt_sid(tvbuff_t *tvb, int offset, proto_tree *parent_tree,
|
|||
|
||||
if (rid) {
|
||||
item = proto_tree_add_item (subtree,
|
||||
(sid_display_hex ? hf_nt_sid_rid_hex : hf_nt_sid_rid_dec), tvb, rid_offset, 4, TRUE);
|
||||
(sid_display_hex ? hf_nt_sid_rid_hex : hf_nt_sid_rid_dec), tvb, rid_offset, 4, ENC_LITTLE_ENDIAN);
|
||||
proto_item_append_text(item, " (%s)", mapped_rid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue