mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-23 11:37:05 -04:00
UF 0.10.4.1
- solved a problem with left on empty QByteArray
This commit is contained in:
parent
108a40a31c
commit
d1add47500
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue