VolumeVerifier: Fix a copypaste error

This was completely wrong, but I guess it happened to work correctly
anyway due to timing reasons (MD5 is faster than SHA-1 + AES).
This commit is contained in:
JosJuice 2019-11-22 13:35:21 +01:00
parent 6d193d3b5a
commit 4e713238d9
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ void VolumeVerifier::Process()
if (m_block_index < m_blocks.size() && if (m_block_index < m_blocks.size() &&
m_blocks[m_block_index].offset < m_progress + bytes_to_read) m_blocks[m_block_index].offset < m_progress + bytes_to_read)
{ {
m_md5_future = std::async( m_block_future = std::async(
std::launch::async, std::launch::async,
[this, read_succeeded, bytes_to_read](size_t block_index, u64 progress) { [this, read_succeeded, bytes_to_read](size_t block_index, u64 progress) {
while (block_index < m_blocks.size() && while (block_index < m_blocks.size() &&