Don't close diveDir in fileExists (#20035)

2.0.x
Sergey1560 4 years ago committed by Scott Lahteine
parent 5082106145
commit 1767a3bd70

@ -637,7 +637,7 @@ bool CardReader::fileExists(const char * const path) {
if (fname) { if (fname) {
diveDir->rewind(); diveDir->rewind();
selectByName(*diveDir, fname); selectByName(*diveDir, fname);
diveDir->close(); //diveDir->close();
} }
return !!fname; return !!fname;
} }

Loading…
Cancel
Save