diff options
-rw-r--r-- | firmware/include/dircache_redirect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/include/dircache_redirect.h b/firmware/include/dircache_redirect.h index 52110b17a7..5c3f630d74 100644 --- a/firmware/include/dircache_redirect.h +++ b/firmware/include/dircache_redirect.h | |||
@@ -161,7 +161,10 @@ static inline void volume_onmount_internal(IF_MV_NONVOID(int volume)) | |||
161 | root_unmount_volume(volume); /* unmount so root can be hidden*/ | 161 | root_unmount_volume(volume); /* unmount so root can be hidden*/ |
162 | #endif | 162 | #endif |
163 | if (rtlen <= 0) /* Error occurred, card removed? Set root to default */ | 163 | if (rtlen <= 0) /* Error occurred, card removed? Set root to default */ |
164 | { | ||
165 | root_unmount_volume(volume); /* unmount so root can be hidden*/ | ||
164 | goto standard_redirect; | 166 | goto standard_redirect; |
167 | } | ||
165 | root_mount_path(rtpath, NSITEM_CONTENTS); | 168 | root_mount_path(rtpath, NSITEM_CONTENTS); |
166 | } | 169 | } |
167 | 170 | ||