mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-06 01:21:24 -04:00
[core] add a retry when writing ISO files
* Closes #176 * Also fix a crash when displaying an error message (MSG_043 requires a parameter) * Also display an informative message on interfering security solutions when writing an autorun.inf * Also revert x64 MSVC target to non-XP so that it can be used for Code Analysis
This commit is contained in:
parent
cbec9daaee
commit
0206e2036e
6 changed files with 62 additions and 33 deletions
22
src/smart.c
22
src/smart.c
|
@ -455,16 +455,18 @@ int IsHDD(DWORD DriveIndex, uint16_t vid, uint16_t pid, const char* strid)
|
|||
score -= 10;
|
||||
|
||||
// Check the string against well known HDD identifiers
|
||||
ilen = safe_strlen(strid);
|
||||
for (i=0; i<ARRAYSIZE(str_score); i++) {
|
||||
mlen = strlen(str_score[i].name);
|
||||
if (mlen > ilen)
|
||||
break;
|
||||
wc = (str_score[i].name[mlen-1] == '#');
|
||||
if ( (_strnicmp(strid, str_score[i].name, mlen-((wc)?1:0)) == 0)
|
||||
&& ((!wc) || ((strid[mlen] >= '0') && (strid[mlen] <= '9'))) ) {
|
||||
score += str_score[i].score;
|
||||
break;
|
||||
if (strid != NULL) {
|
||||
ilen = strlen(strid);
|
||||
for (i=0; i<ARRAYSIZE(str_score); i++) {
|
||||
mlen = strlen(str_score[i].name);
|
||||
if (mlen > ilen)
|
||||
break;
|
||||
wc = (str_score[i].name[mlen-1] == '#');
|
||||
if ( (_strnicmp(strid, str_score[i].name, mlen-((wc)?1:0)) == 0)
|
||||
&& ((!wc) || ((strid[mlen] >= '0') && (strid[mlen] <= '9'))) ) {
|
||||
score += str_score[i].score;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue