Fixed bug in reading GPTs with encoded header sizes other than 92 bytes.
This commit is contained in:
10
gptcurses.h
10
gptcurses.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user