mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-04 08:29:50 -04:00
[core] fix MBR cleanup regression
* Commit 9dc045a701
introduced a regression on account that we didn't set the
file pointer to 0 before clearing the disk.
* This leads to the MBR not being properly cleared, with the result that Windows may in turn
produce errors when trying to repartition the disk.
* Fix this by making sure we do invoke SetFilePointerEx() before calling WriteFileWithRetry().
* Also set rufus-next to 3.17
* Also fix a MinGW warning
This commit is contained in:
parent
0b618f3de7
commit
d8a2c29a67
7 changed files with 25 additions and 22 deletions
|
@ -310,7 +310,7 @@ static const char* GetEdition(DWORD ProductType)
|
|||
case 0x000000BD: return "Lite";
|
||||
case 0xABCDABCD: return "(Unlicensed)";
|
||||
default:
|
||||
static_sprintf(unknown_edition_str, "(Unknown Edition 0x%02X)", ProductType);
|
||||
static_sprintf(unknown_edition_str, "(Unknown Edition 0x%02X)", (uint32_t)ProductType);
|
||||
return unknown_edition_str;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue