mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 16:08:23 +08:00
Small fix
- corrected unneeded use of fromRawData - removed unneeded empty string in postcode info
This commit is contained in:
parent
867f507fac
commit
c5dfbe7924
@ -1032,7 +1032,7 @@ STATUS FfsParser::parseVolumeHeader(const QByteArray & volume, const UINT32 pare
|
|||||||
UINT8 ffsVersion = 0;
|
UINT8 ffsVersion = 0;
|
||||||
|
|
||||||
// Check for FFS v2 volume
|
// Check for FFS v2 volume
|
||||||
QByteArray guid = QByteArray::fromRawData((const char*)volumeHeader->FileSystemGuid.Data, sizeof(EFI_GUID));
|
QByteArray guid = QByteArray((const char*)volumeHeader->FileSystemGuid.Data, sizeof(EFI_GUID));
|
||||||
if (std::find(FFSv2Volumes.begin(), FFSv2Volumes.end(), guid) != FFSv2Volumes.end()) {
|
if (std::find(FFSv2Volumes.begin(), FFSv2Volumes.end(), guid) != FFSv2Volumes.end()) {
|
||||||
isUnknown = false;
|
isUnknown = false;
|
||||||
ffsVersion = 2;
|
ffsVersion = 2;
|
||||||
@ -2211,7 +2211,7 @@ STATUS FfsParser::parsePostcodeSectionHeader(const QByteArray & section, const U
|
|||||||
|
|
||||||
// Get info
|
// Get info
|
||||||
QString name = sectionTypeToQString(sectionHeader->Type) + QObject::tr(" section");
|
QString name = sectionTypeToQString(sectionHeader->Type) + QObject::tr(" section");
|
||||||
QString info = QObject::tr("Type: %1h\nFull size: %2h (%3)\nHeader size: %4h (%5)\nBody size: %6h (%7)\nPostcode: %8h\n")
|
QString info = QObject::tr("Type: %1h\nFull size: %2h (%3)\nHeader size: %4h (%5)\nBody size: %6h (%7)\nPostcode: %8h")
|
||||||
.hexarg2(postcodeHeader->Type, 2)
|
.hexarg2(postcodeHeader->Type, 2)
|
||||||
.hexarg(section.size()).arg(section.size())
|
.hexarg(section.size()).arg(section.size())
|
||||||
.hexarg(header.size()).arg(header.size())
|
.hexarg(header.size()).arg(header.size())
|
||||||
|
Loading…
Reference in New Issue
Block a user