yay, finally another herpderp commit!

This commit is contained in:
fix94.1 2012-11-18 13:53:27 +00:00
parent f57507c4f3
commit 844b7087e5

View File

@ -116,7 +116,10 @@ u32 crc32file(const char *name)
/* Check our filesize */
fseek(fp, 0, SEEK_END);
if(ftell(fp) > 0x40000000) //pfff over 1gb would take ages
{
fclose(fp);
return oldcrc32;
}
rewind(fp);
/* Get a Buffer and begin */
u8 *Buffer = (u8*)MEM2_alloc(FILEBUFFER);