summaryrefslogtreecommitdiffhomepage
path: root/src/fs
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-24 14:04:17 +0000
committermidipix <writeonce@midipix.org>2016-12-25 01:30:56 -0500
commit5765437d866e6da27f5b7cc9b30f9dac41dce9f9 (patch)
treef34b1c433f74d81aa8c0731d15778e623478c79c /src/fs
parentfd484f4658c579e363321b2e65182e6b6f83a083 (diff)
downloadntapi-5765437d866e6da27f5b7cc9b30f9dac41dce9f9.tar.bz2
ntapi-5765437d866e6da27f5b7cc9b30f9dac41dce9f9.tar.xz
__ntapi_tt_istat(): added NT_ISTAT_DEV_NAME_ONLY support.
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(