mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-17 16:44:27 -04:00
[iso] make the lookup for updatable .cfg file more generic
* For ESET and other ISOs, such as Arch derivatives * Closes #1013
This commit is contained in:
parent
fa94abcc8e
commit
63eb747cde
3 changed files with 17 additions and 18 deletions
|
@ -1131,7 +1131,8 @@ char* replace_in_token_data(const char* filename, const char* token, const char*
|
|||
}
|
||||
// Check the input file's BOM and create an output file with the same
|
||||
if (fread(&bom, sizeof(bom), 1, fd_in) != 1) {
|
||||
uprintf("Could not read file '%s'\n", filename);
|
||||
if (!feof(fd_in))
|
||||
uprintf("Could not read file '%s'\n", filename);
|
||||
goto out;
|
||||
}
|
||||
switch(bom) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue