* Also be more lenient about erasing the backup GPT
This commit is contained in:
Pete Batard 2018-09-17 12:08:07 +01:00
parent 97315a238d
commit 1b63e59ee2
3 changed files with 12 additions and 7 deletions

View file

@ -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;
}
}
}
}