mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 14:35:21 -04:00
[iso] fix case sensitive comparison when preventing 'ldlinux.sys' overwrite
* Because we install our own ldlinux.sys, we must ensure that if the ISO contains an ldlinux.sys in the root directory, this file is not copied over. However, our comparison for the 'ldlinux.sys' string was case sensitive which means that some ISOs such as R-Drive Image boot ISO, that use 'LDLINUX.SYS' were trying write over our file, resulting in a file extraction failure. * This patch ensures that the string comparison for 'ldlinux.sys' is case insensitive. * Also add 512px sized icon (upscaled using waifu2x)
This commit is contained in:
parent
798029237f
commit
b251930608
3 changed files with 7 additions and 7 deletions
|
@ -181,8 +181,8 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t file_length, const
|
|||
}
|
||||
|
||||
// In case there's an ldlinux.sys on the ISO, prevent it from overwriting ours
|
||||
if ((psz_dirname != NULL) && (psz_dirname[0] == 0) && (safe_strcmp(psz_basename, ldlinux_name) == 0)) {
|
||||
uprintf("skipping % file from ISO image\n", ldlinux_name);
|
||||
if ((psz_dirname != NULL) && (psz_dirname[0] == 0) && (safe_stricmp(psz_basename, ldlinux_name) == 0)) {
|
||||
uprintf("Skipping '%s' file from ISO image", psz_basename);
|
||||
return TRUE;
|
||||
}
|
||||
} else { // Scan-time checks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue