From c64b966ff83861a70914e88cd047ae414b5ce41d Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 25 Dec 2016 02:24:46 -0500 Subject: file-system interfaces: removed the inadequate ntapi_tt_validate_fs_handle. --- src/fs/ntapi_tt_istat.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/fs') diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c index 83c7f9a..5e6df3d 100644 --- a/src/fs/ntapi_tt_istat.c +++ b/src/fs/ntapi_tt_istat.c @@ -126,30 +126,3 @@ int32_t __stdcall __ntapi_tt_istat( return status; } - - -int32_t __stdcall __ntapi_tt_validate_fs_handle( - __in void * hfile, - __in uint32_t dev_name_hash, - __in nt_fii fii, - __out uintptr_t * buffer, - __in uint32_t buffer_size) -{ - int32_t status; - nt_istat istat; - - status = __ntapi->tt_istat( - hfile, - &istat,sizeof(istat), - buffer,buffer_size, - NT_ISTAT_DEFAULT); - - if (status) return status; - - if (istat.fii.index_number.quad != fii.index_number.quad) - return NT_STATUS_CONTEXT_MISMATCH; - else if (istat.dev_name_hash != dev_name_hash) - return NT_STATUS_CONTEXT_MISMATCH; - - return NT_STATUS_SUCCESS; -} -- cgit v1.2.3