diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-11 19:52:07 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-11 19:52:07 +0000 |
commit | d80246fac010002606d936f6a38057cfa108d172 (patch) | |
tree | 292feff402b6bfa765d34b5753ffa61c94507e33 /firmware/common | |
parent | 3da7d7920808b4c713b0315881ec8b79fbf9c098 (diff) | |
download | rockbox-d80246fac010002606d936f6a38057cfa108d172.tar.gz rockbox-d80246fac010002606d936f6a38057cfa108d172.zip |
Committed the missing file to r16632.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16634 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
105 | if (dircache_is_enabled() && !file->write && use_cache) | 105 | if (dircache_is_enabled() && !file->write && use_cache) |
106 | { | 106 | { |
107 | const struct dircache_entry *ce; | 107 | const struct dircache_entry *ce; |
108 | # ifdef HAVE_MULTIVOLUME | ||
109 | int volume = strip_volume(pathname, pathnamecopy); | ||
110 | # endif | ||
108 | 111 | ||
109 | ce = dircache_get_entry_ptr(pathname); | 112 | ce = dircache_get_entry_ptr(pathname); |
110 | if (!ce) | 113 | if (!ce) |
@@ -114,7 +117,7 @@ static int open_internal(const char* pathname, int flags, bool use_cache) | |||
114 | return -7; | 117 | return -7; |
115 | } | 118 | } |
116 | 119 | ||
117 | fat_open(IF_MV2(unsupported at the moment,) | 120 | fat_open(IF_MV2(volume,) |
118 | ce->startcluster, | 121 | ce->startcluster, |
119 | &(file->fatfile), | 122 | &(file->fatfile), |
120 | NULL); | 123 | NULL); |