forked from osmocom/wireshark
Switch one of the places in the DCERPC dissector from using
tvb_fake_unicode() to tvb_get_unicode_string(). svn path=/trunk/; revision=35346
This commit is contained in:
parent
159b55ad12
commit
1acf19f7eb
1 changed files with 2 additions and 6 deletions
|
@ -1544,12 +1544,8 @@ dissect_ndr_cvstring(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
|
||||
if (size_is == sizeof(guint16)) {
|
||||
/* XXX - use drep to determine the byte order? */
|
||||
s = tvb_fake_unicode(tvb, offset, buffer_len / 2, TRUE);
|
||||
/*
|
||||
* XXX - we don't support a string type with Unicode
|
||||
* characters, so if this is a string item, we make
|
||||
* its value be the "fake Unicode" string.
|
||||
*/
|
||||
s = tvb_get_unicode_string(tvb, offset, buffer_len, ENC_LITTLE_ENDIAN);
|
||||
|
||||
if (tree && buffer_len) {
|
||||
hfinfo = proto_registrar_get_nth(hfindex);
|
||||
tvb_ensure_bytes_exist(tvb, offset, buffer_len);
|
||||
|
|
Loading…
Reference in a new issue