diff options
-rw-r--r-- | src/fs/ntapi_tt_istat.c | 2 | ||||
-rw-r--r-- | src/fs/ntapi_tt_stat.c | 2 | ||||
-rw-r--r-- | src/fs/ntapi_tt_statfs.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c index 5e6df3d..f17c8b1 100644 --- a/src/fs/ntapi_tt_istat.c +++ b/src/fs/ntapi_tt_istat.c @@ -37,7 +37,7 @@ int32_t __stdcall __ntapi_tt_istat( istat,0,sizeof(*istat)); istat->hfile = hfile; - istat->dev_name_maxlen = infolen - sizeof(*istat); + istat->dev_name_maxlen = (uint16_t)infolen - sizeof(*istat); /* file index number */ if (!(flags & NT_ISTAT_DEV_NAME_ONLY)) diff --git a/src/fs/ntapi_tt_stat.c b/src/fs/ntapi_tt_stat.c index 4937067..762535f 100644 --- a/src/fs/ntapi_tt_stat.c +++ b/src/fs/ntapi_tt_stat.c @@ -37,7 +37,7 @@ int32_t __stdcall __ntapi_tt_stat( stat,0,sizeof(*stat)); stat->hfile = hfile; - stat->dev_name_maxlen = infolen - sizeof(*stat); + stat->dev_name_maxlen = (uint16_t)infolen - sizeof(*stat); /* system-unique device name */ if ((status = __ntapi->zw_query_information_file( diff --git a/src/fs/ntapi_tt_statfs.c b/src/fs/ntapi_tt_statfs.c index 21785fd..d131758 100644 --- a/src/fs/ntapi_tt_statfs.c +++ b/src/fs/ntapi_tt_statfs.c @@ -42,7 +42,7 @@ int32_t __stdcall __ntapi_tt_statfs( statfs,0,sizeof(*statfs)); statfs->hfile = hfile; - statfs->dev_name_maxlen = infolen - sizeof(*statfs); + statfs->dev_name_maxlen = (uint16_t)infolen - sizeof(*statfs); /* maximum component length, file system type */ if ((status = __ntapi->zw_query_volume_information_file( |