mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-02 07:39:54 -04:00
[misc] introduce hImageOption and ComboBox_GetCurItemData() to simplify code
* Also add retry to ms-sys' write_sectors()
This commit is contained in:
parent
09d2f2f0ab
commit
4617f91e3b
9 changed files with 60 additions and 60 deletions
|
@ -48,7 +48,7 @@ int64_t write_sectors(HANDLE hDrive, uint64_t SectorSize,
|
|||
}
|
||||
|
||||
LastWriteError = 0;
|
||||
if(!WriteFile(hDrive, pBuf, Size, &Size, NULL))
|
||||
if(!WriteFileWithRetry(hDrive, pBuf, Size, &Size, WRITE_RETRIES))
|
||||
{
|
||||
LastWriteError = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|GetLastError();
|
||||
uprintf("write_sectors: Write error %s\n", WindowsErrorString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue