summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-09-22 10:40:34 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-09-22 10:41:25 -0400
commit8f8fb13edb3c1267cec91a7ac1ac37270be36ba2 (patch)
treeb953db6ad6ad436fd0a603abb053660e199fec46 /uisimulator/common
parente5d4e334035c55df6dcd990083c9c751d04be6a7 (diff)
downloadrockbox-8f8fb13edb3c1267cec91a7ac1ac37270be36ba2.tar.gz
rockbox-8f8fb13edb3c1267cec91a7ac1ac37270be36ba2.zip
dbtool: Fix build when we have HOTSWAP but not MULTIVOLUME
(Not sure how that can happen, but... eh) Change-Id: I7754f1678698e8781df76c2f88bdf12cc43a5e0e
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/filesystem-sim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/common/filesystem-sim.c b/uisimulator/common/filesystem-sim.c
index 786f17e644..dc9d3ec345 100644
--- a/uisimulator/common/filesystem-sim.c
+++ b/uisimulator/common/filesystem-sim.c
@@ -205,14 +205,14 @@ void sim_ext_extracted(int drive)
205 for (unsigned int i = 0; i < MAX_OPEN_FILES; i++) 205 for (unsigned int i = 0; i < MAX_OPEN_FILES; i++)
206 { 206 {
207 struct filestr_desc *filestr = &openfiles[i]; 207 struct filestr_desc *filestr = &openfiles[i];
208 if (filestr->osfd >= 0 && IF_MV(volume_drive(filestr->volume) == drive)) 208 if (filestr->osfd >= 0 IF_MV(&& volume_drive(filestr->volume) == drive))
209 filestr->mounted = false; 209 filestr->mounted = false;
210 } 210 }
211 211
212 for (unsigned int i = 0; i < MAX_OPEN_DIRS; i++) 212 for (unsigned int i = 0; i < MAX_OPEN_DIRS; i++)
213 { 213 {
214 struct dirstr_desc *dirstr = &opendirs[i]; 214 struct dirstr_desc *dirstr = &opendirs[i];
215 if (dirstr->osdirp && IF_MV(volume_drive(dirstr->volume) == drive)) 215 if (dirstr->osdirp IF_MV(&& volume_drive(dirstr->volume) == drive))
216 dirstr->mounted = false; 216 dirstr->mounted = false;
217 } 217 }
218 218