mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix crc32 initial value
This commit is contained in:
parent
2950804cfb
commit
291cdde544
|
@ -79,7 +79,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename, int
|
||||||
|
|
||||||
|
|
||||||
// take the CRC of the file and store it
|
// take the CRC of the file and store it
|
||||||
unsigned Crc = 0;
|
unsigned Crc = crc32(0L, 0x0, 0);
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -231,7 +231,7 @@ bool CDataFileReader::GetCrcSize(class IStorage *pStorage, const char *pFilename
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// get crc and size
|
// get crc and size
|
||||||
unsigned Crc = 0;
|
unsigned Crc = crc32(0L, 0x0, 0);
|
||||||
unsigned Size = 0;
|
unsigned Size = 0;
|
||||||
unsigned char aBuffer[64*1024];
|
unsigned char aBuffer[64*1024];
|
||||||
while(1)
|
while(1)
|
||||||
|
|
Loading…
Reference in a new issue