mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
_FAT_fat_nextCluster now returns CLUSTER_FREE when input cluster is CLUSTER_FREE
This commit is contained in:
parent
838cc907d1
commit
28e71f2920
@ -37,6 +37,9 @@
|
||||
|
||||
2007-10-25 - Chishm
|
||||
* Use CLUSTER_ERROR when an error occurs with the FAT, not CLUSTER_FREE
|
||||
|
||||
2007-11-04 - Chishm
|
||||
* _FAT_fat_nextCluster returns CLUSTER_FREE when input cluster is CLUSTER_FREE
|
||||
*/
|
||||
|
||||
|
||||
@ -53,6 +56,10 @@ u32 _FAT_fat_nextCluster(PARTITION* partition, u32 cluster)
|
||||
u32 sector;
|
||||
int offset;
|
||||
|
||||
if (cluster == CLUSTER_FREE) {
|
||||
return CLUSTER_FREE;
|
||||
}
|
||||
|
||||
switch (partition->filesysType)
|
||||
{
|
||||
case FS_UNKNOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user