Fixed bug in hybrid MBR generation; gdisk 0.6.9

This commit is contained in:
srs5694
2010-07-04 01:54:00 -04:00
parent 8f1b2d6edc
commit 61768bccde
8 changed files with 39 additions and 19 deletions

View File

@@ -23,6 +23,7 @@
#include <string.h>
#include <errno.h>
#include <stdint.h>
#include <limits.h>
#include <iostream>
#include <sstream>
#include <cstdio>
@@ -390,6 +391,7 @@ void GPTDataTextUI::MakeHybrid(void) {
// Linux won't find any partitions on the disk.
newNote = new struct PartInfo;
newNote->gptPartNum = MBR_EFI_GPT;
newNote->firstLBA = 1;
newNote->active = 0;
newNote->hexCode = 0xEE;
newNote->type = PRIMARY;