mirror of
https://github.com/Elpisdev/unsegaREBORN.git
synced 2026-10-11 08:38:33 +03:00
get_next_cluster fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user