From 844b7087e59e63ef23c1d904ae1e461d44493d2f Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Sun, 18 Nov 2012 13:53:27 +0000 Subject: [PATCH] yay, finally another herpderp commit! --- source/plugin/crc32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/plugin/crc32.c b/source/plugin/crc32.c index 012ef209..cebecfa9 100644 --- a/source/plugin/crc32.c +++ b/source/plugin/crc32.c @@ -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);