:: commit 721bedbcc9d4a5009c33084f4d54aa9e405c9c0c

mintsuki <mintsuki@protonmail.com> — 2021-01-03 21:40

parents: f527896a2b

fat32: Fix wrong return type issue

diff --git a/limine-pxe.bin b/limine-pxe.bin
index 95c48697..5e98a025 100644
Binary files a/limine-pxe.bin and b/limine-pxe.bin differ
diff --git a/limine.bin b/limine.bin
index a0a30c8c..aba71294 100644
Binary files a/limine.bin and b/limine.bin differ
diff --git a/stage2.map b/stage2.map
index c01d4271..4a0aa594 100644
Binary files a/stage2.map and b/stage2.map differ
diff --git a/stage2/fs/fat32.c b/stage2/fs/fat32.c
index a40a1b50..287d0d87 100644
--- a/stage2/fs/fat32.c
+++ b/stage2/fs/fat32.c
@@ -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);
 }
tab: 248 wrap: offon