From 1d3e991a03ff78741f801f88a7bd4ec541bdc99e Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 24 Dec 2016 18:33:47 +0000 Subject: {i}stat{fs} interfaces: add .obj_name_strlen, remove .record_name_strlen. --- src/fs/ntapi_tt_stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs/ntapi_tt_stat.c') diff --git a/src/fs/ntapi_tt_stat.c b/src/fs/ntapi_tt_stat.c index b94b08f..b7ad52d 100644 --- a/src/fs/ntapi_tt_stat.c +++ b/src/fs/ntapi_tt_stat.c @@ -81,8 +81,6 @@ int32_t __stdcall __ntapi_tt_stat( /* record the file name length, but do not hash */ fai = (nt_fai *)buffer; stat->file_name_length = fai->name_info.file_name_length; - stat->file_name_hash = 0; - /* file system size information */ if ((status = __ntapi->zw_query_volume_information_file( @@ -139,6 +137,8 @@ int32_t __stdcall __ntapi_tt_stat( for (; *wch!='\\'; ) wch++; + stat->obj_name_strlen = sdev->strlen; + stat->obj_name_maxlen = stat->dev_name_maxlen; stat->dev_name_strlen = (uint16_t)((wch - sdev->buffer) * sizeof(uint16_t)); stat->dev_name_hash = __ntapi->tt_buffer_crc32( hash,wch_mark, -- cgit v1.2.3