diff --git a/stratosphere/ncm/source/ncm_fs.cpp b/stratosphere/ncm/source/ncm_fs.cpp index 61318837e..491146635 100644 --- a/stratosphere/ncm/source/ncm_fs.cpp +++ b/stratosphere/ncm/source/ncm_fs.cpp @@ -61,7 +61,8 @@ namespace ams::ncm::fs { Result ReadFile(FILE* f, size_t offset, void* buffer, size_t size) { R_UNLESS(fseek(f, offset, SEEK_SET) == 0, fsdevGetLastResult()); - R_UNLESS(fread(buffer, 1, size, f) == size || !ferror(f), fsdevGetLastResult()); + R_UNLESS(fread(buffer, 1, size, f) == size, fsdevGetLastResult()); + R_UNLESS(!ferror(f), fsdevGetLastResult()); return ResultSuccess(); }