mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-21 23:48:22 +08:00
UEFIFind and nvramparser.cpp bugfixes
This commit is contained in:
parent
227be5480e
commit
9b85fac61b
@ -79,7 +79,7 @@ USTATUS UEFIFind::find(const UINT8 mode, const bool count, const QString & hexPa
|
||||
|
||||
// Special case of freeform subtype GUID files
|
||||
if (indexes.second.isValid() && model->subtype(indexes.second) == EFI_SECTION_FREEFORM_SUBTYPE_GUID) {
|
||||
data = model->header(indexes.second).left(sizeof(EFI_FREEFORM_SUBTYPE_GUID_SECTION));
|
||||
data = model->header(indexes.second);
|
||||
result.append(" ").append(guidToUString(*(const EFI_GUID*)(data.constData() + sizeof(EFI_COMMON_SECTION_HEADER))));
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ int main(int argc, char *argv[])
|
||||
return U_SUCCESS;
|
||||
}
|
||||
else {
|
||||
std::cout << "UEFIFind 0.10.8" << std::endl << std::endl <<
|
||||
std::cout << "UEFIFind 0.10.9" << std::endl << std::endl <<
|
||||
"Usage: UEFIFind {header | body | all} {list | count} pattern imagefile" << std::endl <<
|
||||
" or UEFIFind file patternsfile imagefile" << std::endl;
|
||||
return U_INVALID_PARAMETER;
|
||||
|
@ -1374,7 +1374,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index)
|
||||
|
||||
// Check variable size
|
||||
if (variableSize > unparsedSize) {
|
||||
unparsedSize = 0;
|
||||
variableSize = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user