mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
[nstool] Fixed seek() typo in HashTreeWrappedIFile
This commit is contained in:
parent
0b0d546605
commit
57d03b6076
|
@ -89,7 +89,7 @@ void HashTreeWrappedIFile::read(byte_t* out, size_t len)
|
|||
}
|
||||
|
||||
// update offset
|
||||
mDataOffset += len;
|
||||
seek(mDataOffset + len);
|
||||
}
|
||||
|
||||
void HashTreeWrappedIFile::read(byte_t* out, size_t offset, size_t len)
|
||||
|
@ -169,7 +169,7 @@ void HashTreeWrappedIFile::initialiseDataLayer(const HashTreeMeta& hdr)
|
|||
|
||||
void HashTreeWrappedIFile::readData(size_t block_offset, size_t block_num)
|
||||
{
|
||||
seek(block_offset * mDataBlockSize);
|
||||
mData->seek(block_offset * mDataBlockSize);
|
||||
crypto::sha::sSha256Hash hash;
|
||||
|
||||
// determine read size
|
||||
|
|
Loading…
Reference in a new issue