mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-14 11:07:52 +01:00
fix typo-bug in HierarchicalSha256Storage::Read
This commit is contained in:
parent
173d5c2d3a
commit
42124fd7d8
@ -90,7 +90,7 @@ namespace ams::fssystem {
|
||||
R_UNLESS(util::IsAligned(size, m_hash_target_block_size), fs::ResultInvalidArgument());
|
||||
|
||||
/* Read the data. */
|
||||
const size_t reduced_size = static_cast<size_t>(std::min<s64>(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size) - offset));
|
||||
const size_t reduced_size = static_cast<size_t>(std::min<s64>(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size)) - offset);
|
||||
R_TRY(m_base_storage->Read(offset, buffer, reduced_size));
|
||||
|
||||
/* Temporarily increase our thread priority. */
|
||||
|
Loading…
Reference in New Issue
Block a user