diff options
Diffstat (limited to 'firmware')
-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); |