mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
UF 0.10.4.1
- solved a problem with left on empty QByteArray
This commit is contained in:
parent
108a40a31c
commit
d1add47500
@ -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
|
||||
|
@ -148,7 +148,7 @@ int main(int argc, char *argv[])
|
||||
return ERR_SUCCESS;
|
||||
}
|
||||
else {
|
||||
std::cout << "UEFIFind 0.10.4" << std::endl << std::endl <<
|
||||
std::cout << "UEFIFind 0.10.4.1" << std::endl << std::endl <<
|
||||
"Usage: uefifind {header | body | all} {list | count} pattern imagefile" << std::endl <<
|
||||
" or uefifind file patternsfile imagefile" << std::endl;
|
||||
return ERR_INVALID_PARAMETER;
|
||||
|
Loading…
Reference in New Issue
Block a user