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_istat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/fs/ntapi_tt_istat.c') diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c index 99e0a1d..f54f8ea 100644 --- a/src/fs/ntapi_tt_istat.c +++ b/src/fs/ntapi_tt_istat.c @@ -131,11 +131,12 @@ int32_t __stdcall __ntapi_tt_istat( for (; *wch!='\\'; ) wch++; + istat->obj_name_strlen = sdev->strlen; + istat->obj_name_maxlen = istat->dev_name_maxlen; istat->dev_name_strlen = (uint16_t)((wch - sdev->buffer) * sizeof(uint16_t)); istat->dev_name_hash = __ntapi->tt_buffer_crc32( - hash, - wch_mark, - (uintptr_t)wch - (uintptr_t)wch_mark); + hash,wch_mark, + sizeof(wchar16_t)*(wch-wch_mark)); if (!(flags & NT_ISTAT_DEV_NAME_COPY)) return NT_STATUS_SUCCESS; -- cgit v1.2.3