mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Corrected tail append on extraction
This commit is contained in:
parent
2d33206d29
commit
41e3ccf692
@ -85,7 +85,7 @@ STATUS FfsOperations::extract(const QModelIndex & index, QString & name, QByteAr
|
|||||||
// Handle file tail
|
// Handle file tail
|
||||||
if (model->type(index) == Types::File) {
|
if (model->type(index) == Types::File) {
|
||||||
if (pdata.file.hasTail)
|
if (pdata.file.hasTail)
|
||||||
extracted.append(pdata.file.tail);
|
extracted.append(pdata.file.tailArray[0]).append(pdata.file.tailArray[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mode == EXTRACT_MODE_BODY) {
|
else if (mode == EXTRACT_MODE_BODY) {
|
||||||
|
@ -43,7 +43,10 @@ typedef struct _VOLUME_PARSING_DATA {
|
|||||||
//} FREE_SPACE_PARSING_DATA;
|
//} FREE_SPACE_PARSING_DATA;
|
||||||
|
|
||||||
typedef struct _FILE_PARSING_DATA {
|
typedef struct _FILE_PARSING_DATA {
|
||||||
UINT16 tail;
|
union {
|
||||||
|
UINT8 tailArray[2];
|
||||||
|
UINT16 tail;
|
||||||
|
};
|
||||||
BOOLEAN hasTail;
|
BOOLEAN hasTail;
|
||||||
} FILE_PARSING_DATA;
|
} FILE_PARSING_DATA;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user