mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-23 11:17:03 -04:00
v3.3
* Also be more lenient about erasing the backup GPT
This commit is contained in:
parent
97315a238d
commit
1b63e59ee2
3 changed files with 12 additions and 7 deletions
|
@ -861,8 +861,13 @@ static BOOL ClearMBRGPT(HANDLE hPhysicalDrive, LONGLONG DiskSize, DWORD SectorSi
|
|||
if (j < WRITE_RETRIES) {
|
||||
uprintf("Retrying in %d seconds...", WRITE_TIMEOUT / 1000);
|
||||
Sleep(WRITE_TIMEOUT);
|
||||
} else
|
||||
} else {
|
||||
// Windows seems to be an ass about keeping a lock on a backup GPT,
|
||||
// so we try to be lenient about about not being able to clear it.
|
||||
uprintf("Warning: Failed to clear backup GPT...");
|
||||
r = TRUE;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue