mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-02-23 03:22:33 -05:00
Fix the false error report about ventoy.jsonxxx file. (#1190)
This commit is contained in:
parent
cc1cc6c301
commit
f842d46f90
@ -4866,7 +4866,7 @@ static int ventoy_chk_case_file(const char *filename, const struct grub_dirhook_
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 == info->dir && grub_strncasecmp(filename, "ventoy.json", 11) == 0)
|
if (0 == info->dir && grub_strcasecmp(filename, "ventoy.json") == 0)
|
||||||
{
|
{
|
||||||
grub_snprintf(g_json_case_mis_path, 32, "%s/%s", (char *)data, filename);
|
grub_snprintf(g_json_case_mis_path, 32, "%s/%s", (char *)data, filename);
|
||||||
return 1;
|
return 1;
|
||||||
@ -4886,7 +4886,7 @@ static int ventoy_chk_case_dir(const char *filename, const struct grub_dirhook_i
|
|||||||
|
|
||||||
if (info->dir && (filename[0] == 'v' || filename[0] == 'V'))
|
if (info->dir && (filename[0] == 'v' || filename[0] == 'V'))
|
||||||
{
|
{
|
||||||
if (grub_strncasecmp(filename, "ventoy", 6) == 0)
|
if (grub_strcasecmp(filename, "ventoy") == 0)
|
||||||
{
|
{
|
||||||
grub_snprintf(path, sizeof(path), "/%s", filename);
|
grub_snprintf(path, sizeof(path), "/%s", filename);
|
||||||
fs_dir->fs->fs_dir(fs_dir->dev, path, ventoy_chk_case_file, path);
|
fs_dir->fs->fs_dir(fs_dir->dev, path, ventoy_chk_case_file, path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user