mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-25 17:21:52 +01:00
DSU: Fix bad crc calculate (#410)
This commit is contained in:
parent
643ac57a30
commit
88f63ca373
@ -16,7 +16,14 @@ void MessageHeader::Finalize(size_t size)
|
||||
|
||||
uint32_t MessageHeader::CRC32(size_t size) const
|
||||
{
|
||||
return crc32_calc(this, size);
|
||||
uint32_t tmp, tmp2;
|
||||
|
||||
tmp = m_crc32;
|
||||
m_crc32 = 0;
|
||||
tmp2 = crc32_calc(this, size);
|
||||
m_crc32 = tmp;
|
||||
|
||||
return tmp2;
|
||||
}
|
||||
|
||||
bool MessageHeader::IsClientMessage() const { return m_magic == kMagicClient; }
|
||||
|
Loading…
Reference in New Issue
Block a user