mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-23 02:19:15 +01:00
change partition->disc to partition->cache (from rodries)
This commit is contained in:
parent
806fc418e0
commit
245ac2fee5
@ -278,7 +278,7 @@ uint32_t _FAT_fat_linkFreeClusterCleared (PARTITION* partition, uint32_t cluster
|
|||||||
// Clear all the sectors within the cluster
|
// Clear all the sectors within the cluster
|
||||||
memset (emptySector, 0, BYTES_PER_READ);
|
memset (emptySector, 0, BYTES_PER_READ);
|
||||||
for (i = 0; i < partition->sectorsPerCluster; i++) {
|
for (i = 0; i < partition->sectorsPerCluster; i++) {
|
||||||
_FAT_cache_writeSectors (partition->disc,
|
_FAT_cache_writeSectors (partition->cache,
|
||||||
_FAT_fat_clusterToSector (partition, newCluster) + i,
|
_FAT_fat_clusterToSector (partition, newCluster) + i,
|
||||||
1, emptySector);
|
1, emptySector);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user