[format] fixed corruption issue when MBR is garbage

* after a bb check, MBR could become garbage
* when that occurs, Windows might interpret a bad partition table and prevent MBR from being properly written
* force a complete zeroing of the whole MBR before partitioning to fix this
* also added error code for bb
This commit is contained in:
Pete Batard 2011-12-06 18:11:38 +00:00
parent 5c2242beaa
commit 480986b0ae
7 changed files with 39 additions and 7 deletions

View file

@ -183,3 +183,4 @@ typedef struct {
#define ERROR_INVALID_CLUSTER_SIZE 0x1203
#define ERROR_INVALID_VOLUME_SIZE 0x1204
#define ERROR_CANT_START_THREAD 0x1205
#define ERROR_BADBLOCKS 0x1206