Do SMB_COM_SEARCH or SMB_COM_FIND results ever have a Unicode file name?

Change-Id: I11d3091bdaa7d4ecff66c238e45b265a57ef1af7
Reviewed-on: https://code.wireshark.org/review/25177
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-01-06 19:02:16 -08:00
parent 603bb5097d
commit e429e9ac7e
1 changed files with 3 additions and 0 deletions

View File

@ -5759,6 +5759,9 @@ dissect_search_dir_info(tvbuff_t *tvb, packet_info *pinfo,
COUNT_BYTES_SUBR(4);
/* file name */
/* XXX - [MS-CIFS] says this is 13 *bytes*, suggesting that it's
in an OEM code page (i.e., ASCII superset), not Unicode in
UTF-16 encoding. Is it *ever* Unicode? */
fn_len = 13;
fn = get_unicode_or_ascii_string(tvb, &offset, si->unicode, &fn_len,
TRUE, TRUE, bcp);