From 1513dfcf4e5339fe501ebee91c21be805684951c Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Sat, 8 Nov 2014 23:30:32 +0100 Subject: [PATCH] UEFIPatch 0.2.2 -corrected typo in program name -compiled with new ffsEngine -hex values are printed uppercase --- UEFIPatch/uefipatch.cpp | 2 +- UEFIPatch/uefipatch_main.cpp | 6 +++--- ffsengine.cpp | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/UEFIPatch/uefipatch.cpp b/UEFIPatch/uefipatch.cpp index 3d2576e..c2e3a20 100644 --- a/UEFIPatch/uefipatch.cpp +++ b/UEFIPatch/uefipatch.cpp @@ -62,7 +62,7 @@ UINT8 UEFIPatch::patchFromFile(QString path) // Use sharp sign as commentary if (line.count() == 0 || line[0] == '#') continue; - + QList list = line.split(' '); if (list.count() < 3) continue; diff --git a/UEFIPatch/uefipatch_main.cpp b/UEFIPatch/uefipatch_main.cpp index 15f465f..3254a41 100644 --- a/UEFIPatch/uefipatch_main.cpp +++ b/UEFIPatch/uefipatch_main.cpp @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) QCoreApplication a(argc, argv); a.setOrganizationName("CodeRush"); a.setOrganizationDomain("coderush.me"); - a.setApplicationName("UEFIExtract"); + a.setApplicationName("UEFIPatch"); UEFIPatch w; UINT8 result = ERR_SUCCESS; @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) result = w.patchFromFile(a.arguments().at(1)); } else { - std::cout << "UEFIPatch 0.2.1 - UEFI image file patching utility" << std::endl << std::endl << + std::cout << "UEFIPatch 0.2.2 - 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; @@ -73,4 +73,4 @@ int main(int argc, char *argv[]) } return result; -} \ No newline at end of file +} diff --git a/ffsengine.cpp b/ffsengine.cpp index 7139b9a..4893aeb 100644 --- a/ffsengine.cpp +++ b/ffsengine.cpp @@ -197,6 +197,7 @@ void FfsEngine::msg(const QString & message, const QModelIndex & index) #ifndef _CONSOLE messageItems.enqueue(MessageListItem(message, NULL, 0, index)); #else + (void) index; std::cout << message.toLatin1().constData() << std::endl; #endif } @@ -3815,7 +3816,7 @@ UINT8 FfsEngine::patchViaOffset(QByteArray & data, const UINT32 offset, const QB .arg(replacePattern.length()) .hexarg(offset, 8) .arg(QString(data.mid(offset, replacePattern.length()).toHex()).toUpper()) - .arg(QString(replacePattern.toHex())).toUpper()); + .arg(QString(replacePattern.toHex()).toUpper())); data = body; return ERR_SUCCESS; }