From 5ec3b0ecd03d9ccfb1cd30fc0ce53770b025e481 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Mon, 8 Feb 2010 18:36:28 +0000 Subject: [PATCH] Fix regression in r659 --- Src/IEC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/IEC.cpp b/Src/IEC.cpp index f56ac16..61b6b98 100644 --- a/Src/IEC.cpp +++ b/Src/IEC.cpp @@ -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);