Fixed bug in reading GPTs with encoded header sizes other than 92 bytes.

This commit is contained in:
srs5694
2011-09-18 21:12:28 -04:00
parent f502e52912
commit d1b11e8305
9 changed files with 567 additions and 42 deletions

View File

@@ -2,21 +2,21 @@
* Implementation of GPTData class derivative with curses-based text-mode
* interaction
* Copyright (C) 2011 Roderick W. Smith
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*
*/
#include <iostream>
@@ -81,6 +81,7 @@ protected:
string whichOptions;
char currentKey;
int numSpaces;
// Functions relating to Spaces data structures
void EmptySpaces(void);
int MakeSpacesFromParts(void);
@@ -90,6 +91,7 @@ protected:
void LinkToEnd(Space *theSpace);
void SortSpaces(void);
void IdentifySpaces(void);
// Data display functions
Space* ShowSpace(int spaceNum, int lineNum);
int DisplayParts(int selected);