mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-06-03 08:28:50 -04:00
1.0.69 release
This commit is contained in:
parent
a173acaf17
commit
045f53d768
2 changed files with 2 additions and 13 deletions
|
@ -995,19 +995,8 @@ grub_ntfs_dir_iter (const char *filename, enum grub_fshelp_filetype filetype,
|
|||
info.mtime = grub_divmod64 (node->mtime, 10000000, 0)
|
||||
- 86400ULL * 365 * (1970 - 1601)
|
||||
- 86400ULL * ((1970 - 1601) / 4) + 86400ULL * ((1970 - 1601) / 100);
|
||||
|
||||
if (!info.dir)
|
||||
{
|
||||
struct grub_ntfs_file *mft = (struct grub_ntfs_file *)node;
|
||||
info.size = mft->size;
|
||||
if (!mft->inode_read)
|
||||
{
|
||||
init_file(mft, mft->ino);
|
||||
info.size = mft->size;
|
||||
free_file(mft);
|
||||
}
|
||||
}
|
||||
|
||||
info.size = node->size;
|
||||
grub_free (node);
|
||||
return ctx->hook (filename, &info, ctx->hook_data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue