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