diff options
Diffstat (limited to 'src/fs/ntapi_tt_statfs.c')
-rw-r--r-- | src/fs/ntapi_tt_statfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/ntapi_tt_statfs.c b/src/fs/ntapi_tt_statfs.c index d131758..5d5de60 100644 --- a/src/fs/ntapi_tt_statfs.c +++ b/src/fs/ntapi_tt_statfs.c @@ -44,6 +44,10 @@ int32_t __stdcall __ntapi_tt_statfs( statfs->hfile = hfile; statfs->dev_name_maxlen = (uint16_t)infolen - sizeof(*statfs); + /* sigh */ + if (buffer_size >= 65536) + buffer_size = 65535; + /* maximum component length, file system type */ if ((status = __ntapi->zw_query_volume_information_file( hfile, |