summaryrefslogtreecommitdiffhomepage
path: root/src/fs/ntapi_tt_statfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/ntapi_tt_statfs.c')
-rw-r--r--src/fs/ntapi_tt_statfs.c2
1 files changed, 1 insertions, 1 deletions
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(