diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index c640e6e737..cff11d20cc 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -2012,7 +2012,7 @@ int fat_rename(struct fat_file* file, | |||
2012 | if(FAT_ATTR_DIRECTORY == attr) { | 2012 | if(FAT_ATTR_DIRECTORY == attr) { |
2013 | unsigned char buf[SECTOR_SIZE]; | 2013 | unsigned char buf[SECTOR_SIZE]; |
2014 | /* open the dir that was renamed, we re-use the olddir_file struct */ | 2014 | /* open the dir that was renamed, we re-use the olddir_file struct */ |
2015 | rc = fat_open(IF_MV2(volume,) newfile.firstcluster, &olddir_file, NULL); | 2015 | rc = fat_open(IF_MV2(file->volume,) newfile.firstcluster, &olddir_file, NULL); |
2016 | if (rc < 0) | 2016 | if (rc < 0) |
2017 | return rc * 10 - 6; | 2017 | return rc * 10 - 6; |
2018 | 2018 | ||