From 1960a8029bf171dd1ca1bd15567125245d7ebb37 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 13 Nov 2010 15:46:38 +0000 Subject: Fix multivolume case git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28577 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/drivers') 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; -- cgit v1.2.3