mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-18 08:54:38 +08:00
(Adler32): skip checksum update for zero-length arrays.
This commit is contained in:
@@ -179,8 +179,11 @@ namespace GameRes.Compression
|
||||
|
||||
public override void Write (byte[] buffer, int offset, int count)
|
||||
{
|
||||
m_adler.Write (buffer, offset, count);
|
||||
m_total_in += count;
|
||||
if (count > 0)
|
||||
{
|
||||
m_adler.Write (buffer, offset, count);
|
||||
m_total_in += count;
|
||||
}
|
||||
}
|
||||
|
||||
public override void WriteByte (byte value)
|
||||
|
||||
Reference in New Issue
Block a user