Fix regression in r659

This commit is contained in:
simon.kagstrom 2010-02-08 18:36:28 +00:00
parent 23a2511e54
commit 5ec3b0ecd0

View File

@ -926,7 +926,7 @@ bool IsMountableFile(const char *path, int &type)
long size = ftell(f);
fseek(f, 0, SEEK_SET);
n = fread(header, 1, sizeof(header), f);
if (n != 1)
if (n != sizeof(header))
out = false;
fclose(f);