summaryrefslogtreecommitdiff
path: root/mbr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mbr.cc')
-rw-r--r--mbr.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbr.cc b/mbr.cc
index b142a7a..249fc27 100644
--- a/mbr.cc
+++ b/mbr.cc
@@ -85,7 +85,7 @@ int MBRData::ReadMBRData(const string & deviceFilename) {
canDeleteMyDisk = 1;
} // if
if (myDisk->OpenForRead(deviceFilename)) {
- ReadMBRData(myDisk);
+ allOK = ReadMBRData(myDisk);
} else {
allOK = 0;
} // if
@@ -101,7 +101,7 @@ int MBRData::ReadMBRData(const string & deviceFilename) {
// Note that any extended partition(s) present will be explicitly stored
// in the partitions[] array, along with their contained partitions; the
// extended container partition(s) should be ignored by other functions.
-void MBRData::ReadMBRData(DiskIO * theDisk, int checkBlockSize) {
+int MBRData::ReadMBRData(DiskIO * theDisk, int checkBlockSize) {
int allOK = 1, i, j, logicalNum;
int err = 1;
TempMBR tempMBR;
@@ -201,6 +201,7 @@ void MBRData::ReadMBRData(DiskIO * theDisk, int checkBlockSize) {
} // for
} // if (hybrid detection code)
} // no initial error
+ return allOK;
} // MBRData::ReadMBRData(DiskIO * theDisk, int checkBlockSize)
// This is a recursive function to read all the logical partitions, following the