From d80246fac010002606d936f6a38057cfa108d172 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 11 Mar 2008 19:52:07 +0000 Subject: Committed the missing file to r16632. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16634 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/common/file.c b/firmware/common/file.c index 613eba97df..4e08e50558 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -105,6 +105,9 @@ static int open_internal(const char* pathname, int flags, bool use_cache) if (dircache_is_enabled() && !file->write && use_cache) { const struct dircache_entry *ce; +# ifdef HAVE_MULTIVOLUME + int volume = strip_volume(pathname, pathnamecopy); +# endif ce = dircache_get_entry_ptr(pathname); if (!ce) @@ -114,7 +117,7 @@ static int open_internal(const char* pathname, int flags, bool use_cache) return -7; } - fat_open(IF_MV2(unsupported at the moment,) + fat_open(IF_MV2(volume,) ce->startcluster, &(file->fatfile), NULL); -- cgit v1.2.3