[*] Reset hashstream lock state on import/reset

This commit is contained in:
Reece Wilson 2022-05-14 23:34:25 +01:00
parent d0c4d8cb33
commit 24fc2fd90d

View File

@ -210,6 +210,7 @@ namespace Aurora::Hashing
bool HashStream::Import(const Memory::MemoryViewRead &view)
{
this->finished_ = false;
#define ADD_IMPORT(name) \
if (sizeof(this->state_.name.state) != view.length) \
@ -267,6 +268,7 @@ namespace Aurora::Hashing
void HashStream::Init()
{
this->finished_ = false;
AuMemset(&this->state_, 0, sizeof(this->state_));
switch (this->type_)