From 63465b2dcf51e1b61049791ab741d00acabe8eca Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Fri, 6 Feb 2015 10:00:32 +0100 Subject: [PATCH] Make sure derivatives works - revert some changes done in 0.20.0 update - bump version numbers --- UEFIExtract/uefiextract_main.cpp | 2 +- UEFIPatch/uefipatch.cpp | 2 +- UEFIPatch/uefipatch_main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UEFIExtract/uefiextract_main.cpp b/UEFIExtract/uefiextract_main.cpp index b71af25..ec7969c 100644 --- a/UEFIExtract/uefiextract_main.cpp +++ b/UEFIExtract/uefiextract_main.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) } else { - std::cout << "UEFIExtract 0.4.0" << std::endl << std::endl << + std::cout << "UEFIExtract 0.4.1" << std::endl << std::endl << "Usage: uefiextract imagefile [FileGUID_1 FileGUID_2 ... FileGUID_31]" << std::endl << "Returned value is a bit mask where 0 on position N meant File with GUID_N was found and unpacked, 1 otherwise" << std::endl; return 1; diff --git a/UEFIPatch/uefipatch.cpp b/UEFIPatch/uefipatch.cpp index 1b1537d..c2e3a20 100644 --- a/UEFIPatch/uefipatch.cpp +++ b/UEFIPatch/uefipatch.cpp @@ -126,7 +126,7 @@ UINT8 UEFIPatch::patchFile(const QModelIndex & index, const QByteArray & fileGui if (!model || !index.isValid()) return ERR_INVALID_PARAMETER; - if (model->type(index) == Types::Section && model->attributes(index) == sectionType) { + if (model->type(index) == Types::Section && model->subtype(index) == sectionType) { QModelIndex fileIndex = model->findParentOfType(index, Types::File); if (model->type(fileIndex) == Types::File && model->header(fileIndex).left(sizeof(EFI_GUID)) == fileGuid) diff --git a/UEFIPatch/uefipatch_main.cpp b/UEFIPatch/uefipatch_main.cpp index 0650cb6..74ad273 100644 --- a/UEFIPatch/uefipatch_main.cpp +++ b/UEFIPatch/uefipatch_main.cpp @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) result = w.patchFromFile(a.arguments().at(1)); } else { - std::cout << "UEFIPatch 0.3.0 - UEFI image file patching utility" << std::endl << std::endl << + std::cout << "UEFIPatch 0.3.1 - UEFI image file patching utility" << std::endl << std::endl << "Usage: UEFIPatch image_file" << std::endl << std::endl << "Patches will be read from patches.txt file\n"; return ERR_SUCCESS;