- wim_dirent = search_full_wim_dirent(meta_data, dir, pecmd_path);
- debug("search pecmd.exe %p\n", wim_dirent);
- }
- else if (grub_strncmp(cmdline, "PESET", 5) == 0)
- {
- wim_dirent = search_full_wim_dirent(meta_data, dir, peset_path);
- debug("search peset.exe %p\n", wim_dirent);
- }
- else if (grub_strncmp(cmdline, "WINPESHL", 8) == 0)
- {
- wim_dirent = search_full_wim_dirent(meta_data, dir, winpeshl_path);
- debug("search winpeshl.exe %p\n", wim_dirent);
- }
+ debug("registry setup cmdline:<%s>\n", cmdline);
+ ventoy_str_toupper(cmdline);
+
+ if (grub_strncmp(cmdline, "PECMD", 5) == 0)
+ {
+ wim_dirent = pecmd_dirent;
+ }
+ else if (grub_strncmp(cmdline, "PESET", 5) == 0)
+ {
+ wim_dirent = search_full_wim_dirent(meta_data, dir, peset_path);
+ debug("search peset.exe %p\n", wim_dirent);
+ }
+ else if (grub_strncmp(cmdline, "WINPESHL", 8) == 0)
+ {
+ wim_dirent = search_full_wim_dirent(meta_data, dir, winpeshl_path);
+ debug("search winpeshl.exe %p\n", wim_dirent);
+ }