diff options
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( |