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

2
gpt.h
View File

@@ -98,7 +98,7 @@ public:
int Verify(void);
int CheckGPTSize(void);
int CheckHeaderValidity(void);
int CheckHeaderCRC(struct GPTHeader* header);
int CheckHeaderCRC(struct GPTHeader* header, int warn = 0);
void RecomputeCRCs(void);
void RebuildMainHeader(void);
void RebuildSecondHeader(void);