summaryrefslogtreecommitdiffhomepage
path: root/src/fs/ntapi_tt_istat.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-24 18:33:47 +0000
committermidipix <writeonce@midipix.org>2016-12-25 01:31:01 -0500
commit1d3e991a03ff78741f801f88a7bd4ec541bdc99e (patch)
tree04f3a9448dae4b859742c9ec464db825c8bbf58f /src/fs/ntapi_tt_istat.c
parent31ee70d0195fc172077ef4bd8201465b8434c4d3 (diff)
downloadntapi-1d3e991a03ff78741f801f88a7bd4ec541bdc99e.tar.bz2
ntapi-1d3e991a03ff78741f801f88a7bd4ec541bdc99e.tar.xz
{i}stat{fs} interfaces: add .obj_name_strlen, remove .record_name_strlen.
Diffstat (limited to 'src/fs/ntapi_tt_istat.c')
-rw-r--r--src/fs/ntapi_tt_istat.c7
1 files changed, 4 insertions, 3 deletions
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;