UF 0.10.4.1

- solved a problem with left on empty QByteArray
This commit is contained in:
Nikolaj Schlej 2015-12-13 16:34:56 +01:00
parent 108a40a31c
commit d1add47500
2 changed files with 4 additions and 2 deletions

View file

@ -91,7 +91,9 @@ STATUS UEFIFind::find(const UINT8 mode, const bool count, const QString & hexPat
QPair<QModelIndex, QModelIndex> indexes;
Q_FOREACH(indexes, files) {
QByteArray data = model->header(indexes.first).left(16);
QByteArray data(16, '\x00');
if (!model->hasEmptyHeader(indexes.first))
data = model->header(indexes.first).left(16);
result.append(guidToQString((const UINT8*)data.constData()));
// Special case of freeform subtype GUID files