mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
Paranoia check
svn-id: r34901
This commit is contained in:
parent
f2c5d0563f
commit
b2d93543d4
@ -156,7 +156,7 @@ bool Theme::themeConfigUseable(const Common::FSNode &node, Common::String &theme
|
||||
Common::File stream;
|
||||
bool foundHeader = false;
|
||||
|
||||
if (node.getName().hasSuffix(".zip")) {
|
||||
if (node.getName().hasSuffix(".zip") && !node.isDirectory()) {
|
||||
#ifdef USE_ZLIB
|
||||
Common::ZipArchive zipArchive(node);
|
||||
if (zipArchive.hasFile("THEMERC")) {
|
||||
|
Loading…
Reference in New Issue
Block a user