From 2d33206d295ce7ec2b9f9229a8cf6dda2404dd30 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Thu, 1 Oct 2015 08:25:41 +0200 Subject: [PATCH] Corrected #34 --- common/ffsparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 2ccc59f..7834a88 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -559,7 +559,7 @@ STATUS FfsParser::parseIntelImage(const QByteArray & intelImage, const UINT32 pa return ERR_TRUNCATED_IMAGE; } else if (IntelDataEnd < (UINT32)intelImage.size()) { // Insert padding - QByteArray padding = bios.right(intelImage.size() - IntelDataEnd); + QByteArray padding = intelImage.mid(IntelDataEnd); // Get parent's parsing data PARSING_DATA pdata = parsingDataFromQModelIndex(index);