Switch one of the places in the DCERPC dissector from using
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 3 Jan 2011 18:33:58 +0000 (18:33 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 3 Jan 2011 18:33:58 +0000 (18:33 +0000)
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

index a48fb5ffe7ea963070fb05f71a001ed5944ef7b1..f68021ba2cedb754c8048f72c5c10ef405551b44 100644 (file)
@@ -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);