diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-09-22 10:40:34 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-09-22 10:41:25 -0400 |
commit | 8f8fb13edb3c1267cec91a7ac1ac37270be36ba2 (patch) | |
tree | b953db6ad6ad436fd0a603abb053660e199fec46 | |
parent | e5d4e334035c55df6dcd990083c9c751d04be6a7 (diff) | |
download | rockbox-8f8fb13edb.tar.gz rockbox-8f8fb13edb.zip |
dbtool: Fix build when we have HOTSWAP but not MULTIVOLUME
(Not sure how that can happen, but... eh)
Change-Id: I7754f1678698e8781df76c2f88bdf12cc43a5e0e
-rw-r--r-- | uisimulator/common/filesystem-sim.c | 4 |
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) for (unsigned int i = 0; i < MAX_OPEN_FILES; i++) { struct filestr_desc *filestr = &openfiles[i]; - if (filestr->osfd >= 0 && IF_MV(volume_drive(filestr->volume) == drive)) + if (filestr->osfd >= 0 IF_MV(&& volume_drive(filestr->volume) == drive)) filestr->mounted = false; } for (unsigned int i = 0; i < MAX_OPEN_DIRS; i++) { struct dirstr_desc *dirstr = &opendirs[i]; - if (dirstr->osdirp && IF_MV(volume_drive(dirstr->volume) == drive)) + if (dirstr->osdirp IF_MV(&& volume_drive(dirstr->volume) == drive)) dirstr->mounted = false; } |