mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 14:44:47 -04:00
UT 0.21.4 / UP 0.3.8
- fixed a bug introduced in 0.21.3 commit
This commit is contained in:
parent
9d0bcd0bed
commit
7ebbc58b9b
3 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ int main(int argc, char *argv[])
|
||||||
result = w.patchFromFile(a.arguments().at(1));
|
result = w.patchFromFile(a.arguments().at(1));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << "UEFIPatch 0.3.7 - UEFI image file patching utility" << std::endl << std::endl <<
|
std::cout << "UEFIPatch 0.3.8 - UEFI image file patching utility" << std::endl << std::endl <<
|
||||||
"Usage: UEFIPatch image_file" << std::endl << std::endl <<
|
"Usage: UEFIPatch image_file" << std::endl << std::endl <<
|
||||||
"Patches will be read from patches.txt file\n";
|
"Patches will be read from patches.txt file\n";
|
||||||
return ERR_SUCCESS;
|
return ERR_SUCCESS;
|
||||||
|
|
|
@ -303,17 +303,17 @@ UINT8 FfsEngine::parseIntelImage(const QByteArray & intelImage, QModelIndex & in
|
||||||
return ERR_INVALID_FLASH_DESCRIPTOR;
|
return ERR_INVALID_FLASH_DESCRIPTOR;
|
||||||
}
|
}
|
||||||
biosBegin = meEnd;
|
biosBegin = meEnd;
|
||||||
|
bios = intelImage.mid(biosBegin, biosEnd);
|
||||||
// biosEnd will point to the end of the image file
|
// biosEnd will point to the end of the image file
|
||||||
// it may be wrong, but it's pretty hard to detect a padding after BIOS region
|
// it may be wrong, but it's pretty hard to detect a padding after BIOS region
|
||||||
// with malformed descriptor
|
// with malformed descriptor
|
||||||
}
|
}
|
||||||
// Normal descriptor map
|
// Normal descriptor map
|
||||||
else {
|
else {
|
||||||
|
bios = intelImage.mid(biosBegin, biosEnd);
|
||||||
// Calculate biosEnd
|
// Calculate biosEnd
|
||||||
biosEnd += biosBegin;
|
biosEnd += biosBegin;
|
||||||
}
|
}
|
||||||
|
|
||||||
bios = intelImage.mid(biosBegin, biosEnd);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));
|
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
UEFITool::UEFITool(QWidget *parent) :
|
UEFITool::UEFITool(QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
ui(new Ui::UEFITool),
|
ui(new Ui::UEFITool),
|
||||||
version(tr("0.21.3"))
|
version(tr("0.21.4"))
|
||||||
{
|
{
|
||||||
clipboard = QApplication::clipboard();
|
clipboard = QApplication::clipboard();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue