Read in byte-sized items so returned count is in bytes.

* Fixes EXR loading
This commit is contained in:
baldurk
2016-08-19 12:15:30 +02:00
parent fff93a4bcc
commit b9d44dc820
+1 -1
View File
@@ -43,7 +43,7 @@ bool is_exr_file(FILE *f)
const uint32_t openexr_magic = MAKE_FOURCC(0x76, 0x2f, 0x31, 0x01);
uint32_t magic = 0;
size_t bytesRead = FileIO::fread(&magic, sizeof(magic), 1, f);
size_t bytesRead = FileIO::fread(&magic, 1, sizeof(magic), f);
FileIO::fseek64(f, 0, SEEK_SET);