diff options
author | midipix <writeonce@midipix.org> | 2016-12-24 13:54:46 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-25 01:30:54 -0500 |
commit | fd484f4658c579e363321b2e65182e6b6f83a083 (patch) | |
tree | a620b33ee04d6a2263b71068f47f59cd0f91f075 /src/fs/ntapi_tt_istat.c | |
parent | fc83d8f323b7a866ad377aecb792bdaf3edeb6c8 (diff) | |
download | ntapi-fd484f4658c579e363321b2e65182e6b6f83a083.tar.bz2 ntapi-fd484f4658c579e363321b2e65182e6b6f83a083.tar.xz |
__ntapi_tt_{i}stat{fs}(): \Device\Mup: include share name in device name.
Diffstat (limited to 'src/fs/ntapi_tt_istat.c')
-rw-r--r-- | src/fs/ntapi_tt_istat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c index 77eafb2..b524a5d 100644 --- a/src/fs/ntapi_tt_istat.c +++ b/src/fs/ntapi_tt_istat.c @@ -116,13 +116,18 @@ int32_t __stdcall __ntapi_tt_istat( wch_mark = &wch[12]; hash = __DEVICE_MUP_PREFIX_HASH; istat->flags |= NT_STATFS_MUP_DEVICE; + + for (wch=wch_mark; *wch!='\\'; wch++) + (void)0; + wch++; } else { wch_mark = &wch[8]; + wch = wch_mark; hash = __DEVICE_PATH_PREFIX_HASH; } - for (wch=wch_mark; *wch!='\\'; wch++) - (void)0; + for (; *wch!='\\'; ) + wch++; istat->dev_name_strlen = (uint16_t)((wch - sdev->buffer) * sizeof(uint16_t)); istat->dev_name_hash = __ntapi->tt_buffer_crc32( |