get_next_cluster fix

This commit is contained in:
moqiaoduo
2025-06-22 20:47:00 +08:00
parent 0b62e8f49d
commit 52d59adf22
+4
View File
@@ -54,6 +54,10 @@ static uint32_t get_next_cluster(ExfatContext* ctx, uint32_t cluster) {
if (next >= 0xFFFFFFF8) {
return 0; // end-of-chain
}
if (next == 0)
{
return cluster + 1; // if cluster in FAT is 0, it means the cluster heap is continous (exfat only)
}
return next;
}