From 4bff9fabe84eb88f573685b955f316bf2852039f Mon Sep 17 00:00:00 2001 From: sfisher Date: Mon, 3 Jan 2011 18:33:58 +0000 Subject: [PATCH] Switch one of the places in the DCERPC dissector from using tvb_fake_unicode() to tvb_get_unicode_string(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35346 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-dcerpc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index a48fb5ffe7..f68021ba2c 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -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); -- 2.34.1