summaryrefslogtreecommitdiffhomepage
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/ntapi_tt_istat.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c
index b524a5d..25d098c 100644
--- a/src/fs/ntapi_tt_istat.c
+++ b/src/fs/ntapi_tt_istat.c
@@ -66,22 +66,24 @@ int32_t __stdcall __ntapi_tt_istat(
istat->hfile = hfile;
/* file index number */
- if ((status = __ntapi->zw_query_information_file(
- hfile,
- &iosb,
- &istat->fii,
- sizeof(istat->fii),
- NT_FILE_INTERNAL_INFORMATION)))
- return status;
+ if (!(flags & NT_ISTAT_DEV_NAME_ONLY))
+ if ((status = __ntapi->zw_query_information_file(
+ hfile,
+ &iosb,
+ &istat->fii,
+ sizeof(istat->fii),
+ NT_FILE_INTERNAL_INFORMATION)))
+ return status;
/* attributes & reparse tag information */
- if ((status = __ntapi->zw_query_information_file(
- hfile,
- &iosb,
- &istat->ftagi,
- sizeof(istat->ftagi),
- NT_FILE_ATTRIBUTE_TAG_INFORMATION)))
- return status;
+ if (!(flags & NT_ISTAT_DEV_NAME_ONLY))
+ if ((status = __ntapi->zw_query_information_file(
+ hfile,
+ &iosb,
+ &istat->ftagi,
+ sizeof(istat->ftagi),
+ NT_FILE_ATTRIBUTE_TAG_INFORMATION)))
+ return status;
/* system-unique device name */
if ((status = __ntapi->zw_query_object(