summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-11-13 15:46:38 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-11-13 15:46:38 +0000
commit1960a8029bf171dd1ca1bd15567125245d7ebb37 (patch)
tree3fc5dc8bd89343dfdb6391944c5256057cad3dd6 /firmware/drivers
parent79d26ed7f96537363ee752068d080e4416c14086 (diff)
Fix multivolume case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28577 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/fat.c2
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,
if(FAT_ATTR_DIRECTORY == attr) {
unsigned char buf[SECTOR_SIZE];
/* open the dir that was renamed, we re-use the olddir_file struct */
- rc = fat_open(IF_MV2(volume,) newfile.firstcluster, &olddir_file, NULL);
+ rc = fat_open(IF_MV2(file->volume,) newfile.firstcluster, &olddir_file, NULL);
if (rc < 0)
return rc * 10 - 6;