Cygwin: dll_list: drop unused read_fbi method
This commit is contained in:
parent
4ac32559c0
commit
b6ebca61e3
|
@ -119,7 +119,6 @@ public:
|
|||
ULONG openopts = 0, ACCESS_MASK access = 0,
|
||||
HANDLE rootDir = NULL);
|
||||
static bool read_fii (HANDLE fh, PFILE_INTERNAL_INFORMATION pfii);
|
||||
static bool read_fbi (HANDLE fh, PFILE_BASIC_INFORMATION pfbi);
|
||||
static PWCHAR form_ntname (PWCHAR ntbuf, size_t bufsize, PCWCHAR name);
|
||||
static PWCHAR form_shortname (PWCHAR shortbuf, size_t bufsize, PCWCHAR name);
|
||||
static PWCHAR nt_max_path_buf ()
|
||||
|
|
|
@ -268,29 +268,6 @@ dll_list::read_fii (HANDLE fh, PFILE_INTERNAL_INFORMATION pfii)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
dll_list::read_fbi (HANDLE fh, PFILE_BASIC_INFORMATION pfbi)
|
||||
{
|
||||
pfbi->FileAttributes = INVALID_FILE_ATTRIBUTES;
|
||||
pfbi->LastWriteTime.QuadPart = -1LL;
|
||||
|
||||
NTSTATUS status;
|
||||
IO_STATUS_BLOCK iosb;
|
||||
status = NtQueryInformationFile (fh, &iosb,
|
||||
pfbi, sizeof (*pfbi),
|
||||
FileBasicInformation);
|
||||
if (!NT_SUCCESS (status))
|
||||
{
|
||||
system_printf ("WARNING: %y = NtQueryInformationFile (%p,"
|
||||
" BasicInfo, io.Status %y)",
|
||||
status, fh, iosb.Status);
|
||||
pfbi->FileAttributes = INVALID_FILE_ATTRIBUTES;
|
||||
pfbi->LastWriteTime.QuadPart = -1LL;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Into buf if not NULL, write the IndexNumber in pli.
|
||||
Return the number of characters (that would be) written. */
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue