Minor error handling improvements, remove redundant Exists checks

This commit is contained in:
Henrik Rydgård committed 2025-02-18 10:56:49 -06:00
1 parent a673081743
commit 4b2bce388c
2 files changed
+20 -18

No files matched your search

+1
View File
@@ -352,6 +352,7 @@ bool ReadSingleFileFromZip(Path zipFile, const char *path, std::string *data, st
if (mutex) {
mutex->unlock();
}
data->resize(0);
zip_fclose(file);
zip_close(zip);
return false;