mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-25 17:38:22 +08:00
Fix file extraction in UEFIExtract
This commit is contained in:
parent
126b36a672
commit
021da9df4c
@ -93,9 +93,9 @@ USTATUS FfsDumper::recursiveDump(const UModelIndex & index, const UString & path
|
||||
std::ofstream file(filename.toLocal8Bit(), std::ofstream::binary);
|
||||
if (!file)
|
||||
return U_FILE_OPEN;
|
||||
const UByteArray &headerData = model->header(index);
|
||||
const UByteArray &bodyData = model->body(index);
|
||||
const UByteArray &tailData = model->tail(index);
|
||||
const UByteArray &headerData = model->header(fileIndex);
|
||||
const UByteArray &bodyData = model->body(fileIndex);
|
||||
const UByteArray &tailData = model->tail(fileIndex);
|
||||
file.write(headerData.constData(), headerData.size());
|
||||
file.write(bodyData.constData(), bodyData.size());
|
||||
file.write(tailData.constData(), tailData.size());
|
||||
|
Loading…
Reference in New Issue
Block a user