fat32: Fix wrong return type issue

This commit is contained in:
mintsuki 2021-01-03 22:40:54 +01:00
parent 7674fa6ac0
commit 5b8132a425
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -321,5 +321,5 @@ int fat32_open(struct fat32_file_handle* ret, struct part *part, const char* pat
}
int fat32_read(struct fat32_file_handle* file, void* buf, uint64_t loc, uint64_t count) {
return read_cluster_chain(&file->context, file->cluster_chain, buf, loc, count);
return !read_cluster_chain(&file->context, file->cluster_chain, buf, loc, count);
}